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
3f656181
Commit
3f656181
authored
Apr 20, 2013
by
Brett Wilkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing bad tests and adding new explicit tests for renderSync
parent
7a9ecbcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
18 deletions
+8
-18
test.js
test/test.js
+8
-18
No files found.
test/test.js
View file @
3f656181
...
...
@@ -30,13 +30,17 @@ var expectedRender = '#navbar {\n\
describe
(
"compile scss"
,
function
()
{
it
(
"should compile"
,
function
(
done
)
{
it
(
"should compile
with render
"
,
function
(
done
)
{
sass
.
render
(
scssStr
,
function
(
err
,
css
)
{
done
(
err
);
});
});
it
(
"should match compiled string"
,
function
(
done
)
{
it
(
"should compile with renderSync"
,
function
(
done
)
{
done
(
assert
.
ok
(
sass
.
renderSync
(
scssStr
)));
});
it
(
"should match compiled string with render"
,
function
(
done
)
{
sass
.
render
(
scssStr
,
function
(
err
,
css
)
{
if
(
!
err
)
{
done
(
assert
.
equal
(
css
,
expectedRender
));
...
...
@@ -46,22 +50,8 @@ describe("compile scss", function() {
});
});
it
(
"should execute asynchronously"
,
function
(
done
)
{
var
inside
,
outside
;
inside
=
outside
=
false
;
sass
.
render
(
scssStr
,
function
(
err
,
css
)
{
inside
=
Date
.
now
();
});
outside
=
Date
.
now
();
done
(
assert
.
ok
(
!
inside
)
&&
assert
.
notEqual
(
outside
,
false
));
});
it
(
"should execute synchronously"
,
function
(
done
)
{
var
output
=
sass
.
renderSync
(
scssStr
);
done
(
assert
.
ok
(
output
));
it
(
"should match compiled string with renderSync"
,
function
(
done
)
{
done
(
assert
.
equal
(
sass
.
renderSync
(
scssStr
),
expectedRender
));
});
it
(
"should throw an exception for bad input"
,
function
(
done
)
{
...
...
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