diff --git a/package-lock.json b/package-lock.json index eaea177..1f1b3f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,6 @@ }, "devDependencies": { "chai": "^5.1.0", - "chai-as-promised": "^7.1.1", "chai-changes": "^1.3.4", "chai-spies": "^1.0.0", "engine.io-client": "^6.3.0", @@ -806,18 +805,6 @@ "node": ">=12" } }, - "node_modules/chai-as-promised": { - "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==", - "dev": true, - "dependencies": { - "check-error": "^1.0.2" - }, - "peerDependencies": { - "chai": ">= 2.1.2 < 5" - } - }, "node_modules/chai-changes": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/chai-changes/-/chai-changes-1.3.6.tgz", @@ -893,18 +880,6 @@ "check-engines": "bin/check-engines" } }, - "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==", - "dev": true, - "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" - } - }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", diff --git a/package.json b/package.json index ed14fa3..7a93a55 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "author": "", "devDependencies": { "chai": "^5.1.0", - "chai-as-promised": "^7.1.1", "chai-changes": "^1.3.4", "chai-spies": "^1.0.0", "engine.io-client": "^6.3.0", @@ -37,7 +36,6 @@ "compile-client": "./node_modules/.bin/uglifyjs lib/client.js -c -m --source-map \"filename='public/client.js',url='./client.js.map'\" -o public/client.js && rm -rf temp" }, "overrides": { - "chai": "^5.1.0", "superagent": "^8.0.8" } } diff --git a/test/client.mjs b/test/client.mjs index 667f9a3..f165a9b 100644 --- a/test/client.mjs +++ b/test/client.mjs @@ -57,23 +57,23 @@ describe('SugarClient', function() { }); describe('#primusUrl', function() { describe('when logged in', function() { - return it('should set the query string', function() { + it('should set the query string', function() { var baseUrl; baseUrl = { query: null }; userClient.primusUrl(baseUrl); - return expect(baseUrl.query).to.eql('user_id=user&auth_token=auth'); + expect(baseUrl.query).to.eql('user_id=user&auth_token=auth'); }); }); - return describe('when not logged in', function() { - return it('should not set the query string', function() { + describe('when not logged in', function() { + it('should not set the query string', function() { var baseUrl; baseUrl = { query: null }; sessionClient.primusUrl(baseUrl); - return expect(baseUrl.query).to.be(null); + expect(baseUrl.query).to.eql(null); }); }); }); diff --git a/test/index.mjs b/test/index.mjs index 83cea1a..2238610 100644 --- a/test/index.mjs +++ b/test/index.mjs @@ -1,6 +1,5 @@ import RedisClient from '../lib/redis_client.js'; import * as baseChai from 'chai'; -import chaiAsPromised from 'chai-as-promised'; import chaiSpies from 'chai-spies'; import chaiChanges from 'chai-changes'; @@ -26,8 +25,7 @@ redis.connect(); const chai = { ...baseChai, ...baseChai.use(chaiSpies), - ...baseChai.use(chaiChanges), - ...baseChai.use(chaiAsPromised) + ...baseChai.use(chaiChanges) }; global.chai = chai;