Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Commit 995d288

Browse files
committed
[1.4.0] It should handle both single and double quotes
1 parent 8455217 commit 995d288

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"max-lines": ["error", 400],
5858
"max-nested-callbacks": "error",
5959
"max-params": "error",
60-
"max-statements": ["error", 15],
60+
"max-statements": ["error", 20],
6161
"max-statements-per-line": "error",
6262
"multiline-ternary": ["error", "always-multiline"],
6363
"new-parens": "error",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-watch-sass",
3-
"version": "1.3.2",
3+
"version": "1.4.0",
44
"description": "Watches SASS files, adding @import-ing files to the stream",
55
"keywords": [
66
"gulpplugin",

test/files.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ describe("gulp-watch-sass", () => {
3434
console.warn.called.should.be.false()
3535
}
3636

37+
it("should handle both single and double quotes", () => {
38+
create("a.scss", "@import 'b.scss';\n@import \"c.scss\";")
39+
create("b.scss", "div { margin: 0; }")
40+
create("c.scss", "div { margin: 0; }")
41+
testChanges([
42+
{ change: "b.scss", expect: "a.scss" }
43+
])
44+
testChanges([
45+
{ change: "c.scss", expect: "a.scss" }
46+
])
47+
})
48+
3749
it("should handle SASS files with .scss extension", () => {
3850
create("a.scss", "@import 'b.scss';")
3951
create("b.scss", "div { margin: 0; }")

0 commit comments

Comments
 (0)