From 98c643974449a52933345edd355fb6d3947d283d Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 21 Aug 2024 08:00:17 +0200
Subject: [PATCH] chore(deps): update external major (major) (#251)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[junit-report-builder](https://togithub.com/davidparsson/junit-report-builder)
| [`3.2.1` ->
`5.0.0`](https://renovatebot.com/diffs/npm/junit-report-builder/3.2.1/5.0.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/junit-report-builder/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/junit-report-builder/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/junit-report-builder/3.2.1/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/junit-report-builder/3.2.1/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [sinon-chai](https://togithub.com/chaijs/sinon-chai) | [`3.7.0` ->
`4.0.0`](https://renovatebot.com/diffs/npm/sinon-chai/3.7.0/4.0.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/sinon-chai/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/sinon-chai/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/sinon-chai/3.7.0/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/sinon-chai/3.7.0/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
davidparsson/junit-report-builder
(junit-report-builder)
###
[`v5.0.0`](https://togithub.com/davidparsson/junit-report-builder/compare/4.0.1...5.0.0)
[Compare
Source](https://togithub.com/davidparsson/junit-report-builder/compare/4.0.1...5.0.0)
###
[`v4.0.1`](https://togithub.com/davidparsson/junit-report-builder/compare/4.0.0...4.0.1)
[Compare
Source](https://togithub.com/davidparsson/junit-report-builder/compare/4.0.0...4.0.1)
###
[`v4.0.0`](https://togithub.com/davidparsson/junit-report-builder/compare/3.2.1...4.0.0)
[Compare
Source](https://togithub.com/davidparsson/junit-report-builder/compare/3.2.1...4.0.0)
chaijs/sinon-chai (sinon-chai)
###
[`v4.0.0`](https://togithub.com/chaijs/sinon-chai/releases/tag/4.0.0)
[Compare
Source](https://togithub.com/chaijs/sinon-chai/compare/3.7.0...4.0.0)
#### What's Changed
- Add pointer to `chai-samsam` for Sinon.assert.match by
[@cincodenada](https://togithub.com/cincodenada) in
[https://github.com/chaijs/sinon-chai/pull/156](https://togithub.com/chaijs/sinon-chai/pull/156)
- Add brief note about `.always` prefix to README by
[@cincodenada](https://togithub.com/cincodenada) in
[https://github.com/chaijs/sinon-chai/pull/153](https://togithub.com/chaijs/sinon-chai/pull/153)
- Add support for Chai version 5 by
[@robinbisping](https://togithub.com/robinbisping) in
[https://github.com/chaijs/sinon-chai/pull/161](https://togithub.com/chaijs/sinon-chai/pull/161)
- Set up CI by [@koddsson](https://togithub.com/koddsson) in
[https://github.com/chaijs/sinon-chai/pull/163](https://togithub.com/chaijs/sinon-chai/pull/163)
- Create npm-publish.yml by
[@koddsson](https://togithub.com/koddsson) in
[https://github.com/chaijs/sinon-chai/pull/164](https://togithub.com/chaijs/sinon-chai/pull/164)
- chore: upgrade deps and use c8/prettier by
[@43081j](https://togithub.com/43081j) in
[https://github.com/chaijs/sinon-chai/pull/166](https://togithub.com/chaijs/sinon-chai/pull/166)
#### New Contributors
- [@cincodenada](https://togithub.com/cincodenada) made their
first contribution in
[https://github.com/chaijs/sinon-chai/pull/156](https://togithub.com/chaijs/sinon-chai/pull/156)
- [@robinbisping](https://togithub.com/robinbisping) made their
first contribution in
[https://github.com/chaijs/sinon-chai/pull/161](https://togithub.com/chaijs/sinon-chai/pull/161)
- [@koddsson](https://togithub.com/koddsson) made their first
contribution in
[https://github.com/chaijs/sinon-chai/pull/163](https://togithub.com/chaijs/sinon-chai/pull/163)
- [@43081j](https://togithub.com/43081j) made their first
contribution in
[https://github.com/chaijs/sinon-chai/pull/166](https://togithub.com/chaijs/sinon-chai/pull/166)
**Full Changelog**:
https://github.com/chaijs/sinon-chai/compare/3.7.0...4.0.0
---
### Configuration
📅 **Schedule**: Branch creation - "after 2pm on Monday" in timezone
Europe/Zurich, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/adobe/spacecat-audit-post-processor).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dominique Jäggi
---
package-lock.json | 115 ++++++++++---------------------
package.json | 6 +-
renovate.json5 | 6 --
test/apex/handler.test.js | 7 +-
test/digest/handler-noop.test.js | 7 +-
test/lhs/handler.test.js | 7 +-
test/sitemap/handler.test.js | 7 +-
test/support/config.test.js | 3 +-
test/support/slack.test.js | 7 +-
test/support/utils.test.js | 5 +-
10 files changed, 59 insertions(+), 111 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index b020cfc5..4feed8ca 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -34,14 +34,14 @@
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "12.0.1",
"c8": "10.1.2",
- "chai": "4.5.0",
+ "chai": "5.1.1",
"chai-as-promised": "8.0.0",
"dotenv": "16.4.5",
"eslint": "8.57.0",
"esmock": "2.6.7",
"husky": "9.1.4",
"jsdoc-to-markdown": "8.0.3",
- "junit-report-builder": "3.2.1",
+ "junit-report-builder": "5.0.0",
"lint-staged": "15.2.9",
"mocha": "10.7.3",
"mocha-multi-reporters": "1.5.1",
@@ -50,7 +50,7 @@
"nodemon": "3.1.4",
"semantic-release": "24.1.0",
"sinon": "18.0.0",
- "sinon-chai": "3.7.0",
+ "sinon-chai": "4.0.0",
"yaml": "2.5.0"
}
},
@@ -21273,12 +21273,12 @@
}
},
"node_modules/assertion-error": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
- "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
"dev": true,
"engines": {
- "node": "*"
+ "node": ">=12"
}
},
"node_modules/async": {
@@ -21691,22 +21691,19 @@
"integrity": "sha512-dgh+YleemrT8u85QL11Z6tYhegAs3MMxsaWAq/oXeAmYJ7VxL3SI9TZtnfaEvNDMAPolj25FXIb3S+HCI4wQaQ=="
},
"node_modules/chai": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz",
- "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.1.tgz",
+ "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==",
"dev": true,
- "license": "MIT",
"dependencies": {
- "assertion-error": "^1.1.0",
- "check-error": "^1.0.3",
- "deep-eql": "^4.1.3",
- "get-func-name": "^2.0.2",
- "loupe": "^2.3.6",
- "pathval": "^1.1.1",
- "type-detect": "^4.1.0"
+ "assertion-error": "^2.0.1",
+ "check-error": "^2.1.1",
+ "deep-eql": "^5.0.1",
+ "loupe": "^3.1.0",
+ "pathval": "^2.0.0"
},
"engines": {
- "node": ">=4"
+ "node": ">=12"
}
},
"node_modules/chai-as-promised": {
@@ -21722,26 +21719,6 @@
"chai": ">= 2.1.2 < 6"
}
},
- "node_modules/chai-as-promised/node_modules/check-error": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz",
- "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 16"
- }
- },
- "node_modules/chai/node_modules/type-detect": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz",
- "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=4"
- }
- },
"node_modules/chalk": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",
@@ -21779,15 +21756,12 @@
}
},
"node_modules/check-error": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz",
- "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==",
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz",
+ "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==",
"dev": true,
- "dependencies": {
- "get-func-name": "^2.0.2"
- },
"engines": {
- "node": "*"
+ "node": ">= 16"
}
},
"node_modules/cheerio": {
@@ -22830,15 +22804,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/date-format": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.3.tgz",
- "integrity": "sha512-7P3FyqDcfeznLZp2b+OMitV9Sz2lUnsT87WaTat9nVwqsBkTzPG3lPLNwW3en6F4pHUiWzr6vb8CLhjdK9bcxQ==",
- "dev": true,
- "engines": {
- "node": ">=4.0"
- }
- },
"node_modules/debug": {
"version": "4.3.4",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
@@ -22889,13 +22854,10 @@
}
},
"node_modules/deep-eql": {
- "version": "4.1.3",
- "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz",
- "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==",
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",
+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",
"dev": true,
- "dependencies": {
- "type-detect": "^4.0.0"
- },
"engines": {
"node": ">=6"
}
@@ -26150,18 +26112,17 @@
}
},
"node_modules/junit-report-builder": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/junit-report-builder/-/junit-report-builder-3.2.1.tgz",
- "integrity": "sha512-IMCp5XyDQ4YESDE4Za7im3buM0/7cMnRfe17k2X8B05FnUl9vqnaliX6cgOEmPIeWKfJrEe/gANRq/XgqttCqQ==",
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/junit-report-builder/-/junit-report-builder-5.0.0.tgz",
+ "integrity": "sha512-mWPsMQ84WXVQRgD8WuIPpxhyDKSGBAY5EBKqoJQBjdRltKHVzgbLhMGwzTria6SECiWjjqBjnlAN7qc0Cdiupw==",
"dev": true,
"dependencies": {
- "date-format": "4.0.3",
"lodash": "^4.17.21",
"make-dir": "^3.1.0",
"xmlbuilder": "^15.1.1"
},
"engines": {
- "node": ">=8"
+ "node": ">=16"
}
},
"node_modules/junit-report-builder/node_modules/make-dir": {
@@ -26868,9 +26829,9 @@
}
},
"node_modules/loupe": {
- "version": "2.3.7",
- "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz",
- "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==",
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.1.tgz",
+ "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==",
"dev": true,
"dependencies": {
"get-func-name": "^2.0.1"
@@ -31226,12 +31187,12 @@
}
},
"node_modules/pathval": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",
- "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz",
+ "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==",
"dev": true,
"engines": {
- "node": "*"
+ "node": ">= 14.16"
}
},
"node_modules/perfect-scrollbar": {
@@ -33075,12 +33036,12 @@
}
},
"node_modules/sinon-chai": {
- "version": "3.7.0",
- "resolved": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-3.7.0.tgz",
- "integrity": "sha512-mf5NURdUaSdnatJx3uhoBOrY9dtL19fiOtAdT1Azxg3+lNJFiuN0uzaU3xX1LeAfL17kHQhTAJgpsfhbMJMY2g==",
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/sinon-chai/-/sinon-chai-4.0.0.tgz",
+ "integrity": "sha512-cWqO7O2I4XfJDWyWElAQ9D/dtdh5Mo0RHndsfiiYyjWnlPzBJdIvjCVURO4EjyYaC3BjV+ISNXCfTXPXTEIEWA==",
"dev": true,
"peerDependencies": {
- "chai": "^4.0.0",
+ "chai": "^5.0.0",
"sinon": ">=4.0.0"
}
},
diff --git a/package.json b/package.json
index c5e66db5..7f1f61d3 100644
--- a/package.json
+++ b/package.json
@@ -75,14 +75,14 @@
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "12.0.1",
"c8": "10.1.2",
- "chai": "4.5.0",
+ "chai": "5.1.1",
"chai-as-promised": "8.0.0",
"dotenv": "16.4.5",
"eslint": "8.57.0",
"esmock": "2.6.7",
"husky": "9.1.4",
"jsdoc-to-markdown": "8.0.3",
- "junit-report-builder": "3.2.1",
+ "junit-report-builder": "5.0.0",
"lint-staged": "15.2.9",
"mocha": "10.7.3",
"mocha-multi-reporters": "1.5.1",
@@ -91,7 +91,7 @@
"nodemon": "3.1.4",
"semantic-release": "24.1.0",
"sinon": "18.0.0",
- "sinon-chai": "3.7.0",
+ "sinon-chai": "4.0.0",
"yaml": "2.5.0"
},
"lint-staged": {
diff --git a/renovate.json5 b/renovate.json5
index 2fc2b001..6e2fccff 100644
--- a/renovate.json5
+++ b/renovate.json5
@@ -10,12 +10,6 @@
],
"allowedVersions": ">=23.0"
},
- {
- "matchPackageNames": [
- "chai"
- ],
- "allowedVersions": "<5.0.0"
- },
{
"matchPackageNames": [
"eslint"
diff --git a/test/apex/handler.test.js b/test/apex/handler.test.js
index ebc1db5b..9d3dd233 100644
--- a/test/apex/handler.test.js
+++ b/test/apex/handler.test.js
@@ -11,7 +11,7 @@
*/
/* eslint-env mocha */
import sinon from 'sinon';
-import chai from 'chai';
+import { expect, use } from 'chai';
import sinonChai from 'sinon-chai';
import chaiAsPromised from 'chai-as-promised';
import nock from 'nock';
@@ -20,9 +20,8 @@ import { allAuditsAreSuccessful, apexFails, allFails } from '../fixtures/apex-au
import { slackApexRequestData, slackAllFailsRequestData } from '../fixtures/slack-apex-request-data.js';
import { getQueryParams } from '../../src/support/slack.js';
-chai.use(sinonChai);
-chai.use(chaiAsPromised);
-const { expect } = chai;
+use(sinonChai);
+use(chaiAsPromised);
const sandbox = sinon.createSandbox();
diff --git a/test/digest/handler-noop.test.js b/test/digest/handler-noop.test.js
index 50105d06..a18eb238 100644
--- a/test/digest/handler-noop.test.js
+++ b/test/digest/handler-noop.test.js
@@ -12,14 +12,13 @@
/* eslint-env mocha */
import sinon from 'sinon';
-import chai from 'chai';
+import { expect, use } from 'chai';
import sinonChai from 'sinon-chai';
import chaiAsPromised from 'chai-as-promised';
import noopHandler from '../../src/digest/handler-noop.js';
-chai.use(sinonChai);
-chai.use(chaiAsPromised);
-const { expect } = chai;
+use(sinonChai);
+use(chaiAsPromised);
const sandbox = sinon.createSandbox();
diff --git a/test/lhs/handler.test.js b/test/lhs/handler.test.js
index d6a39c03..efb285c6 100644
--- a/test/lhs/handler.test.js
+++ b/test/lhs/handler.test.js
@@ -11,15 +11,14 @@
*/
/* eslint-env mocha */
import sinon from 'sinon';
-import chai from 'chai';
+import { expect, use } from 'chai';
import nock from 'nock';
import sinonChai from 'sinon-chai';
import chaiAsPromised from 'chai-as-promised';
import lhsHandler from '../../src/lhs/handler.js';
-chai.use(sinonChai);
-chai.use(chaiAsPromised);
-const { expect } = chai;
+use(sinonChai);
+use(chaiAsPromised);
const sandbox = sinon.createSandbox();
diff --git a/test/sitemap/handler.test.js b/test/sitemap/handler.test.js
index 55271a44..ec48911b 100644
--- a/test/sitemap/handler.test.js
+++ b/test/sitemap/handler.test.js
@@ -11,7 +11,7 @@
*/
/* eslint-env mocha */
-import chai from 'chai';
+import { expect, use } from 'chai';
import { noContent } from '@adobe/spacecat-shared-http-utils';
import nock from 'nock';
import sinon from 'sinon';
@@ -20,9 +20,8 @@ import chaiAsPromised from 'chai-as-promised';
import sitemapHandler, { buildSlackMessage, isValidMessage } from '../../src/sitemap/handler.js';
import { queryData } from '../fixtures/sitemap-request-data.js';
-chai.use(sinonChai);
-chai.use(chaiAsPromised);
-const { expect } = chai;
+use(sinonChai);
+use(chaiAsPromised);
let message;
let context;
diff --git a/test/support/config.test.js b/test/support/config.test.js
index 0d9c894a..935240ea 100644
--- a/test/support/config.test.js
+++ b/test/support/config.test.js
@@ -11,10 +11,9 @@
*/
/* eslint-env mocha */
-import chai from 'chai';
+import { expect } from 'chai';
import { getSlackContextForAlert, isDigestReport } from '../../src/support/config.js';
-const { expect } = chai;
describe('config util', () => {
it('getSlackContextForAlert for valid configs byOrg', () => {
const orgConfig = {
diff --git a/test/support/slack.test.js b/test/support/slack.test.js
index 3ac8a655..6adad329 100644
--- a/test/support/slack.test.js
+++ b/test/support/slack.test.js
@@ -13,15 +13,14 @@
/* eslint-disable no-unused-expressions */ // expect statements
import sinon from 'sinon';
-import chai from 'chai';
+import { expect, use } from 'chai';
import sinonChai from 'sinon-chai';
import chaiAsPromised from 'chai-as-promised';
import nock from 'nock';
import { getQueryParams, postSlackMessage, uploadSlackFile } from '../../src/support/slack.js';
-chai.use(sinonChai);
-chai.use(chaiAsPromised);
-const { expect } = chai;
+use(sinonChai);
+use(chaiAsPromised);
const sandbox = sinon.createSandbox();
diff --git a/test/support/utils.test.js b/test/support/utils.test.js
index de1a1ae5..175dd79f 100644
--- a/test/support/utils.test.js
+++ b/test/support/utils.test.js
@@ -11,12 +11,11 @@
*/
/* eslint-env mocha */
-import chai from 'chai';
+import { expect, use } from 'chai';
import chaiAsPromised from 'chai-as-promised';
import { convertToCSV } from '../../src/support/utils.js';
-chai.use(chaiAsPromised);
-const { expect } = chai;
+use(chaiAsPromised);
describe('convertToCSV', () => {
it('should stringify object values of the item fields in the CSV string', () => {