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
09204dd9
Commit
09204dd9
authored
Sep 04, 2016
by
Michael Mifsud
Committed by
GitHub
Sep 04, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1697 from xzyfer/remove/cli-before
Remove the cli before test
parents
7c6ee134
36cc5a02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
17 deletions
+1
-17
cli.js
test/cli.js
+1
-17
No files found.
test/cli.js
View file @
09204dd9
...
...
@@ -7,25 +7,13 @@ var assert = require('assert'),
stream
=
require
(
'stream'
),
spawn
=
require
(
'cross-spawn'
),
cli
=
path
.
join
(
__dirname
,
'..'
,
'bin'
,
'node-sass'
),
fixture
=
path
.
join
.
bind
(
null
,
__dirname
,
'fixtures'
),
LIBSASS_VERSION
=
null
;
fixture
=
path
.
join
.
bind
(
null
,
__dirname
,
'fixtures'
);
describe
(
'cli'
,
function
()
{
// For some reason we experience random timeout failures in CI
// due to spawn hanging/failing silently. See #1692.
this
.
retries
(
4
);
before
(
function
(
done
)
{
var
bin
=
spawn
(
cli
,
[
'-v'
]);
bin
.
stdout
.
setEncoding
(
'utf8'
);
bin
.
stdout
.
once
(
'data'
,
function
(
data
)
{
LIBSASS_VERSION
=
data
.
trim
().
split
([
'
\
n'
])
.
filter
(
function
(
a
)
{
return
a
.
substr
(
0
,
7
)
===
'libsass'
;
})[
0
]
.
split
(
'
\
t'
)[
1
];
done
();
});
});
describe
(
'node-sass < in.scss'
,
function
()
{
it
(
'should read data from stdin'
,
function
(
done
)
{
var
src
=
fs
.
createReadStream
(
fixture
(
'simple/index.scss'
));
...
...
@@ -415,10 +403,6 @@ describe('cli', function() {
});
it
(
'should compile with the --source-map option'
,
function
(
done
)
{
if
(
LIBSASS_VERSION
<
'3.3'
)
{
this
.
skip
(
'Source map functionality broken in libsass < 3.3'
);
}
var
src
=
fixture
(
'source-map/index.scss'
);
var
destCss
=
fixture
(
'source-map/index.css'
);
var
destMap
=
fixture
(
'source-map/index.map'
);
...
...
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