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
b7574c98
Commit
b7574c98
authored
Jan 02, 2014
by
Nick Schonning
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JSHint cli.js tests
- Remove unused vars - Remove unused parameters
parent
f066eb6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
cli.js
test/cli.js
+3
-5
No files found.
test/cli.js
View file @
b7574c98
...
...
@@ -2,7 +2,6 @@ var path = require('path'),
assert
=
require
(
'assert'
),
fs
=
require
(
'fs'
),
exec
=
require
(
'child_process'
).
exec
,
sass
=
require
(
'../sass'
),
cli
=
require
(
'../lib/cli'
),
cliPath
=
path
.
resolve
(
__dirname
,
'../bin/node-sass'
),
...
...
@@ -37,7 +36,7 @@ describe('cli', function() {
exec
(
'node '
+
cliPath
+
' '
+
sampleFilename
,
{
cwd
:
__dirname
},
function
(
err
,
stdout
,
stderr
)
{
},
function
()
{
fs
.
exists
(
resultPath
,
function
(
exists
)
{
assert
(
exists
);
...
...
@@ -51,7 +50,7 @@ describe('cli', function() {
exec
(
'node '
+
cliPath
+
' '
+
sampleFilename
+
' ../out.css'
,
{
cwd
:
__dirname
},
function
(
err
,
stdout
,
stderr
)
{
},
function
()
{
fs
.
exists
(
resultPath
,
function
(
exists
)
{
assert
(
exists
);
...
...
@@ -95,7 +94,7 @@ describe('cli', function() {
var
resultPath
=
path
.
join
(
__dirname
,
'../output.css'
);
var
emitter
=
cli
([
'--output'
,
resultPath
,
path
.
join
(
__dirname
,
'sample.scss'
)]);
emitter
.
on
(
'error'
,
done
);
emitter
.
on
(
'write'
,
function
(
err
,
file
,
css
){
emitter
.
on
(
'write'
,
function
(){
fs
.
exists
(
resultPath
,
function
(
exists
)
{
assert
(
exists
);
fs
.
unlink
(
resultPath
,
done
);
...
...
@@ -139,5 +138,4 @@ describe('cli', 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