From 1d30f1b605845fb1f644c2851d53e5dd6d045489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20J=C3=A4ggi?= Date: Tue, 20 Aug 2024 08:53:21 +0200 Subject: [PATCH] chore(test): adjust to chai 5 --- test/audits/costs.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/audits/costs.test.js b/test/audits/costs.test.js index fb564c81..715a0fbf 100644 --- a/test/audits/costs.test.js +++ b/test/audits/costs.test.js @@ -11,7 +11,7 @@ */ /* eslint-env mocha */ -import chai from 'chai'; +import { expect, use } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import chaiAsPromised from 'chai-as-promised'; @@ -19,9 +19,8 @@ import nock from 'nock'; import { MockContextBuilder } from '../shared.js'; import { runner } from '../../src/costs/handler.js'; -chai.use(sinonChai); -chai.use(chaiAsPromised); -const { expect } = chai; +use(sinonChai); +use(chaiAsPromised); const message = { type: 'costs',