Skip to content

Commit

Permalink
test import chaiaspromised
Browse files Browse the repository at this point in the history
  • Loading branch information
Smart-Gang committed Sep 30, 2024
1 parent ff8780b commit 0a0fe87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mocha.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ process.on('unhandledRejection', (e) => {
// enable the should interface with sinon
// and load chai-as-promised and sinon-chai by default
const sinonChai = require('sinon-chai');
const chaiAsPromised = (...args) => import('chai-as-promised').then(({default: chaiAsPromised}) => chaiAsPromised(...args));
import * as chaiAsPromised from "chai-as-promised";
const { should, use } = require('chai');

should();
use(sinonChai);
use(chaiAsPromised);
use((chaiAsPromised as any).default);

0 comments on commit 0a0fe87

Please sign in to comment.