Skip to content

Commit 3abb887

Browse files
committed
Update dependencies
Note: node-sass changed the reported error messages, so we had to adapt the tests for it.
1 parent 3f83861 commit 3abb887

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@
3838
},
3939
"devDependencies": {
4040
"bootstrap-sass": "^3.3.5",
41-
"css-loader": "^0.24.0",
42-
"eslint": "^3.12.2",
41+
"css-loader": "^0.26.1",
42+
"eslint": "^3.15.0",
4343
"eslint-config-peerigon": "^9.0.0",
4444
"eslint-plugin-jsdoc": "^2.4.0",
45-
"file-loader": "^0.9.0",
45+
"file-loader": "^0.10.0",
4646
"mocha": "^3.0.2",
47-
"node-sass": "^4.0.0",
47+
"node-sass": "^4.5.0",
4848
"raw-loader": "^0.5.1",
49-
"should": "^11.1.0",
49+
"should": "^11.2.0",
5050
"style-loader": "^0.13.1",
51-
"webpack": "^2.2.0-rc.2",
52-
"webpack-dev-server": "^2.2.0-rc.0",
53-
"webpack-merge": "^2.0.0"
51+
"webpack": "^2.2.1",
52+
"webpack-dev-server": "^2.3.0",
53+
"webpack-merge": "^2.6.1"
5454
}
5555
}

test/index.test.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ describe("sass-loader", () => {
101101
runWebpack({
102102
entry: pathToSassLoader + "!" + pathToErrorFile
103103
}, (err) => {
104-
err.message.should.match(/\.syntax-error''/);
105-
err.message.should.match(/Invalid CSS after/);
106-
err.message.should.match(/\(line 1, column 14\)/);
104+
err.message.should.match(/Property "some-value" must be followed by a ':'/);
105+
err.message.should.match(/\(line 2, column 5\)/);
107106
err.message.indexOf(pathToErrorFile).should.not.equal(-1);
108107
done();
109108
});
@@ -113,9 +112,8 @@ describe("sass-loader", () => {
113112
entry: pathToSassLoader + "!" + pathToErrorImport
114113
}, (err) => {
115114
// check for file excerpt
116-
err.message.should.match(/\.syntax-error''/);
117-
err.message.should.match(/Invalid CSS after "\.syntax-error''": expected "\{", was ""/);
118-
err.message.should.match(/\(line 1, column 14\)/);
115+
err.message.should.match(/Property "some-value" must be followed by a ':'/);
116+
err.message.should.match(/\(line 2, column 5\)/);
119117
err.message.indexOf(pathToErrorFile).should.not.equal(-1);
120118
done();
121119
});

test/scss/error.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
.syntax-error''
1+
.syntax-error {
2+
some-value
3+
}

0 commit comments

Comments
 (0)