Skip to content

Commit

Permalink
Fix 'done()' call in contextstore.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisveness committed Mar 18, 2022
1 parent 5791451 commit 8801948
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/contextstore.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ describe('Koa Session External Context Store', () => {

describe('when autoCommit is present', () => {
describe('and set to false', () => {
it('should not set headers if manuallyCommit() isn\'t called', () => {
it('should not set headers if manuallyCommit() isn\'t called', done => {
const app = App({ autoCommit: false });
app.use(async function(ctx) {
if (ctx.method === 'POST') {
Expand All @@ -398,6 +398,7 @@ describe('Koa Session External Context Store', () => {
.end((err, res) => {
const cookie = res.headers['set-cookie'];
should.not.exist(cookie);
done();
});
});
it('should set headers if manuallyCommit() is called', done => {
Expand Down

0 comments on commit 8801948

Please sign in to comment.