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
34461aa1
Commit
34461aa1
authored
Nov 09, 2014
by
Adeel Mujahid
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #523 from akiran/master
Added test for an issue found in the output of stats.includedFiles
parents
8e1daa15
e1d29435
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
api.js
test/api.js
+27
-0
No files found.
test/api.js
View file @
34461aa1
...
@@ -181,6 +181,29 @@ describe('api', function() {
...
@@ -181,6 +181,29 @@ describe('api', function() {
}
}
});
});
});
});
it
(
'should contain an array of all included files in stats when data is passed'
,
function
(
done
)
{
var
stats
=
{};
sass
.
render
({
data
:
read
(
fixture
(
'include-files/index.scss'
),
'utf8'
),
includePaths
:
[
fixture
(
'include-files'
)],
stats
:
stats
,
success
:
function
()
{
[
'foo'
,
'bar'
].
map
(
function
(
expect
)
{
var
slug
=
fixture
(
'include-files/'
+
expect
+
'.scss'
).
replace
(
/
\\
/g
,
'/'
);
assert
(
stats
.
includedFiles
.
some
(
function
(
s
)
{
return
s
===
slug
;
}));
});
done
();
},
error
:
function
(
err
)
{
assert
(
!
err
);
done
();
}
});
});
});
});
describe
(
'.renderSync(options)'
,
function
()
{
describe
(
'.renderSync(options)'
,
function
()
{
...
@@ -412,6 +435,10 @@ describe('api', function() {
...
@@ -412,6 +435,10 @@ describe('api', function() {
});
});
});
});
describe
(
'.renderSync({stats: {}})'
,
function
()
{
describe
(
'.renderSync({stats: {}})'
,
function
()
{
var
start
=
Date
.
now
();
var
start
=
Date
.
now
();
var
stats
=
{};
var
stats
=
{};
...
...
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