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
6d664bfb
Commit
6d664bfb
authored
Feb 15, 2016
by
Nowell Strite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a better example failing test case.
parent
dc19cd52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
api.js
test/api.js
+12
-1
No files found.
test/api.js
View file @
6d664bfb
...
...
@@ -190,11 +190,22 @@ describe('api', function() {
sass
.
render
({
file
:
fixture
(
'include-files/chained-imports-with-custom-importer.scss'
),
importer
:
function
(
url
,
prev
,
done
)
{
// NOTE: to see that this test failure is only due to the stated
// issue do each of the following and see that the tests pass.
//
// a) add `return sass.NULL;` as the first line in this function to
// cause non-custom importers to always be used.
// b) comment out the conditional below to force our custom
// importer to always be used.
//
// You will notice that the tests pass when either all native, or
// all custom importers are used, but not when a native + custom
// import chain is used.
if
(
url
!==
'file-processed-by-loader'
)
{
return
sass
.
NULL
;
}
done
({
file
:
fixture
(
'include-files/
file-processed-by-loader
.scss'
)
file
:
fixture
(
'include-files/
'
+
url
+
'
.scss'
)
});
}
},
function
(
err
,
data
)
{
...
...
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