Skip to content

Commit

Permalink
BAU: Remove chai-as-promised dependency
Browse files Browse the repository at this point in the history
This is now no longer used in the project so the dependency can be removed
  • Loading branch information
BeckaL committed Nov 27, 2024
1 parent a334546 commit e4803ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions test/utils/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
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";
import TestAgent = require("supertest/lib/agent");

chai.should();
chai.use(sinonChai);
chai.use(chaiAsPromised);
chai.use(jestSnapshotPlugin());

const expect = chai.expect;
Expand Down
16 changes: 1 addition & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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==
Expand Down

0 comments on commit e4803ba

Please sign in to comment.