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
b436f847
Commit
b436f847
authored
Nov 08, 2014
by
Kevin Martensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for watched files rendering
parent
64da6c80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
cli.js
test/cli.js
+25
-0
No files found.
test/cli.js
View file @
b436f847
...
...
@@ -163,6 +163,31 @@ describe('cli', function() {
fs
.
appendFileSync
(
src
,
'body {}'
);
},
500
);
});
it
(
'should render all watched files'
,
function
(
done
)
{
fs
.
writeFileSync
(
fixture
(
'simple/foo.scss'
),
''
);
fs
.
writeFileSync
(
fixture
(
'simple/bar.scss'
),
''
);
var
src
=
fixture
(
'simple/foo.scss'
);
var
watched
=
fixture
(
'simple/bar.scss'
);
var
bin
=
spawn
(
cli
,
[
src
,
'--stdout'
,
'--watch'
,
watched
,
'--output-style'
,
'compressed'
]);
bin
.
stdout
.
setEncoding
(
'utf8'
);
bin
.
stdout
.
on
(
'data'
,
function
(
data
)
{
assert
(
data
.
trim
()
===
'body{background:white}'
);
bin
.
kill
();
fs
.
unlinkSync
(
src
);
fs
.
unlinkSync
(
watched
);
done
();
});
setTimeout
(
function
()
{
fs
.
appendFileSync
(
watched
,
'body{background:white}'
);
},
500
);
});
});
describe
(
'node-sass in.scss --output out.css'
,
function
()
{
...
...
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