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
aa3b8361
Commit
aa3b8361
authored
Oct 30, 2014
by
Adeel
Committed by
Kevin Martensson
Oct 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test: Adds back stats test.
parent
c3a53e01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
api.js
test/api.js
+20
-7
No files found.
test/api.js
View file @
aa3b8361
...
...
@@ -245,14 +245,14 @@ describe('api', function() {
var
start
=
Date
.
now
();
var
stats
=
{};
before
(
function
(
done
)
{
before
(
function
(
done
)
{
sass
.
render
({
file
:
fixture
(
'include-files/index.scss'
),
stats
:
stats
,
success
:
function
()
{
success
:
function
()
{
done
();
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
assert
(
!
err
);
done
();
}
...
...
@@ -301,7 +301,7 @@ describe('api', function() {
sass
.
render
({
file
:
fixture
(
'simple/index.scss'
),
stats
:
stats
,
success
:
function
()
{
success
:
function
()
{
assert
.
deepEqual
(
stats
.
includedFiles
,
[
expected
]);
done
();
}
...
...
@@ -312,7 +312,7 @@ describe('api', function() {
sass
.
render
({
data
:
read
(
fixture
(
'simple/index.scss'
),
'utf8'
),
stats
:
stats
,
success
:
function
()
{
success
:
function
()
{
assert
.
equal
(
stats
.
entry
,
'data'
);
done
();
}
...
...
@@ -323,7 +323,7 @@ describe('api', function() {
sass
.
render
({
data
:
read
(
fixture
(
'simple/index.scss'
),
'utf8'
),
stats
:
stats
,
success
:
function
()
{
success
:
function
()
{
assert
.
deepEqual
(
stats
.
includedFiles
,
[]);
done
();
}
...
...
@@ -335,7 +335,7 @@ describe('api', function() {
var
start
=
Date
.
now
();
var
stats
=
{};
before
(
function
()
{
before
(
function
()
{
sass
.
renderSync
({
file
:
fixture
(
'include-files/index.scss'
),
stats
:
stats
...
...
@@ -408,5 +408,18 @@ describe('api', function() {
assert
.
deepEqual
(
stats
.
includedFiles
,
[]);
done
();
});
it
(
'should report correct sourceMap in stats with renderSync'
,
function
(
done
)
{
var
stats
=
{};
sass
.
renderSync
({
file
:
fixture
(
'simple/index.scss'
),
outFile
:
fixture
(
'simple/index.css'
),
stats
:
stats
,
sourceMap
:
true
});
done
(
assert
.
ok
(
stats
.
sourceMap
.
indexOf
(
'index.scss'
)
!==
-
1
));
});
});
});
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