Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Semigradsky committed Feb 18, 2020
1 parent 6260789 commit e3d12a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"ava": "^1.0.0-beta.8",
"ava": "^3.3.0",
"babel-eslint": "^10.0.1",
"babel-plugin-add-module-exports": "^1.0.0",
"cross-env": "^5.2.0",
"del-cli": "^1.1.0",
"del-cli": "^3.0.0",
"eslint": "^5.7.0",
"eslint-config-i-am-meticulous": "^11.0.0",
"eslint-plugin-babel": "^5.2.1",
"eslint-plugin-import": "^2.14.0",
"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 e3d12a8

Please sign in to comment.