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
2bc6dd2b
Commit
2bc6dd2b
authored
Jun 17, 2014
by
blopker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test and realized --source-map is not boolean
parent
d0af5fe6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
cli.js
lib/cli.js
+1
-2
cli.js
test/cli.js
+9
-0
No files found.
lib/cli.js
View file @
2bc6dd2b
...
...
@@ -15,8 +15,7 @@ var optimist = require('optimist')
'default'
:
'none'
})
.
options
(
'source-map'
,
{
describe
:
'Emit source map'
,
type
:
'boolean'
describe
:
'Emit source map'
})
.
options
(
'include-path'
,
{
describe
:
'Path to look for @import-ed files'
,
...
...
test/cli.js
View file @
2bc6dd2b
...
...
@@ -116,6 +116,15 @@ describe('cli', function() {
});
});
it
(
'should write the stdout with the --stdout option'
,
function
(
done
){
var
emitter
=
cli
([
'--stdout'
,
path
.
join
(
__dirname
,
'sample.scss'
)]);
emitter
.
on
(
'error'
,
done
);
emitter
.
on
(
'log'
,
function
(
css
){
assert
.
equal
(
css
,
expectedSampleNoComments
);
done
();
});
});
it
(
'should compile with the --source-map option'
,
function
(
done
){
var
emitter
=
cli
([
path
.
join
(
__dirname
,
'sample.scss'
),
'--source-map'
]);
emitter
.
on
(
'error'
,
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