Skip to content

Commit

Permalink
update assertion-error
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Oct 18, 2023
1 parent f32439f commit 485a25a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import * as util from './chai/utils/index.js';
import AssertionError from 'assertion-error';
import {AssertionError} from 'assertion-error';
import {config} from './chai/config.js';
import './chai/core/assertions.js';
import {expect} from './chai/interface/expect.js';
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/assertion.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import {config} from './config.js';
import AssertionError from 'assertion-error';
import {AssertionError} from 'assertion-error';
import * as util from './utils/index.js';

/*!
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import {Assertion} from '../assertion.js';
import AssertionError from 'assertion-error';
import {AssertionError} from 'assertion-error';
import * as _ from '../utils/index.js';

const {flag} = _;
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/interface/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import {Assertion} from '../assertion.js';
import {flag, inspect} from '../utils/index.js';
import AssertionError from 'assertion-error';
import {AssertionError} from 'assertion-error';

/**
* ### assert(expression, message)
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/interface/expect.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {Assertion} from '../assertion.js';
import AssertionError from 'assertion-error';
import {AssertionError} from 'assertion-error';

function expect(val, message) {
return new Assertion(val, message);
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/interface/should.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {Assertion} from '../assertion.js';
import AssertionError from 'assertion-error';
import {AssertionError} from 'assertion-error';

function loadShould () {
// explicitly define this method as function as to have it's name to include as `ssfi`
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/utils/expectTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @api public
*/

import AssertionError from 'assertion-error';
import {AssertionError} from 'assertion-error';
import {flag} from './flag.js';
import {default as type} from 'type-detect';

Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"node": ">=12"
},
"dependencies": {
"assertion-error": "^1.1.0",
"assertion-error": "^2.0.0",
"check-error": "^2.0.0",
"deep-eql": "^4.1.2",
"loupe": "^2.3.1",
Expand Down

0 comments on commit 485a25a

Please sign in to comment.