Skip to content

Commit

Permalink
Remove chai-as-promised
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Apr 14, 2024
1 parent b6f6f85 commit 3e1c2df
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 35 deletions.
25 changes: 0 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
10 changes: 5 additions & 5 deletions test/client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
});
Expand Down
4 changes: 1 addition & 3 deletions test/index.mjs
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -26,8 +25,7 @@ redis.connect();
const chai = {
...baseChai,
...baseChai.use(chaiSpies),
...baseChai.use(chaiChanges),
...baseChai.use(chaiAsPromised)
...baseChai.use(chaiChanges)
};

global.chai = chai;
Expand Down

0 comments on commit 3e1c2df

Please sign in to comment.