From dda66dd165c5affbaeff0b68e3d76dee3af4a953 Mon Sep 17 00:00:00 2001 From: Federico Poli Date: Thu, 1 Feb 2024 11:34:46 +0100 Subject: [PATCH] Drop chai dependency --- package.json | 4 +--- src/test/extension.test.ts | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index da5d52e1..c0209d36 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "url": "https://github.com/viperproject/prusti-assistant/issues" }, "homepage": "https://github.com/viperproject/prusti-assistant", + "main": "./out/extension", "engines": { "vscode": "^1.60.0", "node": "*" @@ -29,7 +30,6 @@ "activationEvents": [ "onLanguage:rust" ], - "main": "./out/extension", "contributes": { "snippets": [ { @@ -177,7 +177,6 @@ "package": "vsce package --no-dependencies" }, "devDependencies": { - "@types/chai": "^4.3.11", "@types/fs-extra": "^11.0.4", "@types/glob": "^8.1.0", "@types/mocha": "^10.0.6", @@ -187,7 +186,6 @@ "@typescript-eslint/eslint-plugin": "^6.20.0", "@typescript-eslint/parser": "^6.20.0", "@vscode/test-electron": "^2.3.9", - "chai": "^5.0.3", "eslint": "^8.56.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jsdoc": "^48.0.4", diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index c9a2bfc5..fcca5e5f 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -204,8 +204,7 @@ describe("Extension", () => { }; } - const CHAI = await import("chai"); - CHAI.expect(plainDiagnostics).to.deep.equal(expectedDiagnostics.diagnostics); + assert.deepEqual(plainDiagnostics, expectedDiagnostics.diagnostics); }); }); });