Skip to content

Commit

Permalink
Update dependencies (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Semigradsky authored Feb 18, 2020
1 parent 6260789 commit 5fcc943
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"ava": "^1.0.0-beta.8",
"ava": "^1.4.1",
"babel-eslint": "^10.0.1",
"babel-plugin-add-module-exports": "^1.0.0",
"cross-env": "^5.2.0",
Expand All @@ -48,9 +48,9 @@
"jison-gho": "^0.6.1-215"
},
"dependencies": {
"postcss": "^7.0.5",
"postcss": "^7.0.27",
"postcss-selector-parser": "^6.0.2",
"postcss-value-parser": "^3.3.1"
"postcss-value-parser": "^4.0.2"
},
"ava": {
"require": [
Expand Down
5 changes: 3 additions & 2 deletions src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ function testCss(t, fixture, expected = null, opts = {}) {
async function testThrows(t, fixture, expected, opts) {
fixture = `foo{bar:${fixture}}`;

await t.throwsAsync(() => postcss(reduceCalc(opts)).process(fixture, postcssOpts), expected);
const error = await t.throwsAsync(() => postcss(reduceCalc(opts)).process(fixture, postcssOpts))
t.is(error.message, expected);
}

test(
Expand Down Expand Up @@ -607,7 +608,7 @@ test(
'should throw an exception when attempting to divide by zero',
testThrows,
'calc(500px/0)',
/Cannot divide by zero/
'Cannot divide by zero'
);

test(
Expand Down

0 comments on commit 5fcc943

Please sign in to comment.