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
b48d5d6a
Commit
b48d5d6a
authored
Feb 10, 2015
by
Adeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test: Adds sourceMap path related tests.
parent
8794f375
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
api.js
test/api.js
+24
-0
No files found.
test/api.js
View file @
b48d5d6a
...
...
@@ -46,6 +46,19 @@ describe('api', function() {
});
});
it
(
'should compile sass to css with outFile and sourceMap set to relative url'
,
function
(
done
)
{
sass
.
render
({
file
:
fixture
(
'simple/index.scss'
),
sourceMap
:
'./deep/nested/index.map'
,
outFile
:
'./index-test.css'
,
success
:
function
(
result
)
{
assert
.
equal
(
JSON
.
parse
(
result
.
map
).
file
,
'../../index-test.css'
);
done
();
}
});
});
it
(
'should compile sass to css with data'
,
function
(
done
)
{
var
src
=
read
(
fixture
(
'simple/index.scss'
),
'utf8'
);
var
expected
=
read
(
fixture
(
'simple/expected.css'
),
'utf8'
).
trim
();
...
...
@@ -379,6 +392,17 @@ describe('api', function() {
done
();
});
it
(
'should compile sass to css with outFile and sourceMap set to relative url'
,
function
(
done
)
{
var
result
=
sass
.
renderSync
({
file
:
fixture
(
'simple/index.scss'
),
sourceMap
:
'./deep/nested/index.map'
,
outFile
:
'./index-test.css'
});
assert
.
equal
(
JSON
.
parse
(
result
.
map
).
file
,
'../../index-test.css'
);
done
();
});
it
(
'should compile sass to css with data'
,
function
(
done
)
{
var
src
=
read
(
fixture
(
'simple/index.scss'
),
'utf8'
);
var
expected
=
read
(
fixture
(
'simple/expected.css'
),
'utf8'
).
trim
();
...
...
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