Skip to content

Commit

Permalink
import chai where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Oct 21, 2023
1 parent 25c0562 commit dafc206
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/chai/interface/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* MIT Licensed
*/

import * as chai from '../../../index.js';
import {Assertion} from '../assertion.js';
import {flag, inspect} from '../utils/index.js';
import {AssertionError} from 'assertion-error';
Expand Down
1 change: 1 addition & 0 deletions lib/chai/interface/expect.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* MIT Licensed
*/

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

Expand Down
2 changes: 1 addition & 1 deletion test/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as chai from '../index.js';
import {globalErr as err} from './bootstrap/index.js';

describe('assert', function () {
var assert = chai.assert;
const {assert} = chai;

it('assert', function () {
var foo = 'bar';
Expand Down
2 changes: 1 addition & 1 deletion test/should.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as chai from '../../index.js';
import * as chai from '../index.js';
import {globalErr as err} from './bootstrap/index.js';

describe('should', function() {
Expand Down
4 changes: 2 additions & 2 deletions test/utilities.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chai from '../../index.js';
import * as chai from '../index.js';

describe('utilities', function () {
var expect = chai.expect;
const expect = chai.expect;

after(function() {
// Some clean-up so we can run tests in a --watch
Expand Down

0 comments on commit dafc206

Please sign in to comment.