Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
96f0bfb5
Commit
96f0bfb5
authored
Oct 14, 2014
by
Andrew Nesbitt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #457 from edds/update-test-runner
Update test runner to match sass-spec
parents
b75da700
4f5ac736
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
sass-spec.js
test/sass-spec.js
+7
-2
No files found.
test/sass-spec.js
View file @
96f0bfb5
...
...
@@ -30,7 +30,7 @@ describe('sass-spec', function() {
if
(
sassSpecDirExists
)
{
var
suitesPath
=
path
.
join
(
sassSpecPath
,
'spec'
);
var
suites
=
fs
.
readdirSync
(
suitesPath
);
var
ignoreSuites
=
[
'
todo'
,
'benchmark
s'
];
var
ignoreSuites
=
[
'
libsass-todo-issues'
,
'libsass-todo-test
s'
];
suites
.
forEach
(
function
(
suite
)
{
if
(
ignoreSuites
.
indexOf
(
suite
)
!==
-
1
)
{
...
...
@@ -43,10 +43,12 @@ describe('sass-spec', function() {
tests
.
forEach
(
function
(
test
)
{
var
testPath
=
path
.
join
(
suitePath
,
test
);
var
inputFilePath
=
path
.
join
(
testPath
,
'input.scss'
);
if
(
fs
.
existsSync
(
inputFilePath
))
{
it
(
test
,
function
(
done
)
{
sass
.
render
({
file
:
path
.
join
(
testPath
,
'input.scss'
)
,
file
:
inputFilePath
,
includePaths
:
[
testPath
,
path
.
join
(
testPath
,
'sub'
)],
success
:
function
(
css
)
{
var
expected
=
fs
.
readFileSync
(
path
.
join
(
testPath
,
'expected_output.css'
),
'utf-8'
);
...
...
@@ -59,6 +61,9 @@ describe('sass-spec', function() {
}
});
});
}
else
{
it
(
test
);
}
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment