Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 19, 2023
1 parent 76cb309 commit 2c25f99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/loader/mixin/load_middleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ describe('test/loader/mixin/load_middleware.test.js', () => {
assert(!('a' in app.middleware));

assert(app.middleware.static === app.middlewares.static);
const names = [];
for (const mw of app.middleware) {
assert(typeof mw === 'function');
names.push(mw._name);
}
assert(Object.keys(app.middleware).length === 4);
assert.deepEqual(names, [ 'status', 'static', 'custom' ]);
});

it('should override middlewares of plugin by framework', async () => {
Expand Down

0 comments on commit 2c25f99

Please sign in to comment.