Skip to content

Commit 5fcc943

Browse files
authored
Update dependencies (#102)
1 parent 6260789 commit 5fcc943

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@babel/polyfill": "^7.0.0",
3737
"@babel/preset-env": "^7.1.0",
3838
"@babel/register": "^7.0.0",
39-
"ava": "^1.0.0-beta.8",
39+
"ava": "^1.4.1",
4040
"babel-eslint": "^10.0.1",
4141
"babel-plugin-add-module-exports": "^1.0.0",
4242
"cross-env": "^5.2.0",
@@ -48,9 +48,9 @@
4848
"jison-gho": "^0.6.1-215"
4949
},
5050
"dependencies": {
51-
"postcss": "^7.0.5",
51+
"postcss": "^7.0.27",
5252
"postcss-selector-parser": "^6.0.2",
53-
"postcss-value-parser": "^3.3.1"
53+
"postcss-value-parser": "^4.0.2"
5454
},
5555
"ava": {
5656
"require": [

src/__tests__/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ function testCss(t, fixture, expected = null, opts = {}) {
3131
async function testThrows(t, fixture, expected, opts) {
3232
fixture = `foo{bar:${fixture}}`;
3333

34-
await t.throwsAsync(() => postcss(reduceCalc(opts)).process(fixture, postcssOpts), expected);
34+
const error = await t.throwsAsync(() => postcss(reduceCalc(opts)).process(fixture, postcssOpts))
35+
t.is(error.message, expected);
3536
}
3637

3738
test(
@@ -607,7 +608,7 @@ test(
607608
'should throw an exception when attempting to divide by zero',
608609
testThrows,
609610
'calc(500px/0)',
610-
/Cannot divide by zero/
611+
'Cannot divide by zero'
611612
);
612613

613614
test(

0 commit comments

Comments
 (0)