From e3d12a85fababfbaa3db20b94452cd3db58c06ea Mon Sep 17 00:00:00 2001 From: Dmitry Semigradsky Date: Tue, 18 Feb 2020 10:42:25 +0300 Subject: [PATCH] Update dependencies --- package.json | 8 ++++---- src/__tests__/index.js | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 129d07a..077291e 100644 --- a/package.json +++ b/package.json @@ -36,11 +36,11 @@ "@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", @@ -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": [ diff --git a/src/__tests__/index.js b/src/__tests__/index.js index 0ae77da..b656c61 100644 --- a/src/__tests__/index.js +++ b/src/__tests__/index.js @@ -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( @@ -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(