Skip to content

Commit

Permalink
Update test deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kapouer committed Apr 13, 2024
1 parent e1d479b commit 3a8274c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"path-to-regexp": "^6.2.1"
},
"devDependencies": {
"@kapouer/eslint-config": "^1.9.0",
"chai": "^4.3.7",
"mocha": "^10.2.0",
"@kapouer/eslint-config": "^2.0.0",
"chai": "^5.1.0",
"mocha": "^10.4.0",
"nyc": "^15.1.0",
"sinon": "^15.0.1",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0"
},
"eslintConfig": {
Expand Down
11 changes: 8 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const chai = require('chai');
const sinon = require('sinon');
const sinonChai = require('sinon-chai');

chai.use(sinonChai);
const { expect } = chai;
const rewrite = require('../index');

describe('rewrite tests', () => {
Expand All @@ -12,6 +9,14 @@ describe('rewrite tests', () => {
let res;
let next;

let expect;

before(async () => {
const chai = await import('chai');
chai.use(sinonChai);
expect = chai.expect;
});

beforeEach(() => {
req = {
url: '/',
Expand Down

0 comments on commit 3a8274c

Please sign in to comment.