diff --git a/package.json b/package.json index 2d5471b96..69560420a 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,6 @@ }, "devDependencies": { "@types/chai": "^4.3.0", - "@types/chai-as-promised": "^7.1.5", "@types/cheerio": "^0.22.31", "@types/cookie-parser": "^1.4.2", "@types/csurf": "^1.11.2", @@ -128,7 +127,6 @@ "@typescript-eslint/eslint-plugin": "^8.13.0", "@typescript-eslint/parser": "^8.13.0", "chai": "^4.3.6", - "chai-as-promised": "^7.1.1", "chai-http": "^5.1.1", "cheerio": "^1.0.0-rc.10", "concurrently": "^9.0.1", diff --git a/test/utils/test-utils.ts b/test/utils/test-utils.ts index adf3fb1d9..5443ced54 100644 --- a/test/utils/test-utils.ts +++ b/test/utils/test-utils.ts @@ -1,7 +1,6 @@ import chai from "chai"; import sinon from "sinon"; import sinonChai from "sinon-chai"; -import chaiAsPromised from "chai-as-promised"; import { jestSnapshotPlugin } from "mocha-chai-jest-snapshot"; import supertest, { Test } from "supertest"; import { expectAnalyticsPropertiesMatchSnapshot } from "../helpers/expect-response-helpers"; @@ -9,7 +8,6 @@ import TestAgent = require("supertest/lib/agent"); chai.should(); chai.use(sinonChai); -chai.use(chaiAsPromised); chai.use(jestSnapshotPlugin()); const expect = chai.expect; diff --git a/yarn.lock b/yarn.lock index 27959ca95..342128f11 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1740,13 +1740,6 @@ "@types/connect" "*" "@types/node" "*" -"@types/chai-as-promised@^7.1.5": - version "7.1.8" - resolved "https://registry.yarnpkg.com/@types/chai-as-promised/-/chai-as-promised-7.1.8.tgz#f2b3d82d53c59626b5d6bbc087667ccb4b677fe9" - integrity sha512-ThlRVIJhr69FLlh6IctTXFkmhtP3NpMZ2QGq69StYLyKZFp/HOp1VdKZj7RvfNWYYcJ1xlbLGLLWj1UvP5u/Gw== - dependencies: - "@types/chai" "*" - "@types/chai@*", "@types/chai@^4.3.0": version "4.3.0" resolved "https://registry.npmjs.org/@types/chai/-/chai-4.3.0.tgz" @@ -2741,13 +2734,6 @@ caniuse-lite@^1.0.30001646: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz#31218de3463fabb44d0b7607b652e56edf2e2355" integrity sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg== -chai-as-promised@^7.1.1: - version "7.1.1" - resolved "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz" - integrity sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA== - dependencies: - check-error "^1.0.2" - chai-http@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/chai-http/-/chai-http-5.1.1.tgz#de3435e19b9e5ef235c186673da10b823e6c76f1" @@ -2795,7 +2781,7 @@ charset@^1.0.1: resolved "https://registry.yarnpkg.com/charset/-/charset-1.0.1.tgz#8d59546c355be61049a8fa9164747793319852bd" integrity sha512-6dVyOOYjpfFcL1Y4qChrAoQLRHvj2ziyhcm0QJlhOcAhykL/k1kTUPbeo+87MNRTRdk2OIIsIXbuF3x2wi5EXg== -check-error@^1.0.2, check-error@^1.0.3: +check-error@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.3.tgz#a6502e4312a7ee969f646e83bb3ddd56281bd694" integrity sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==