Skip to content

Commit

Permalink
chore: clean up whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
harryby1149 committed Sep 12, 2024
1 parent c3fb21f commit c37e557
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ class Router {
}

stack.push(route);

debug('defined route %s %s', route.methods, route.path);

return route;
Expand Down Expand Up @@ -579,6 +580,7 @@ class Router {

for (let len = layers.length, i = 0; i < len; i++) {
layer = layers[i];

debug('test %s %s', layer.path, layer.regexp);

// eslint-disable-next-line unicorn/prefer-regexp-test
Expand Down
2 changes: 2 additions & 0 deletions test/lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ describe('Router', () => {
)
.get('/users/all')
.expect(200);

assert.strictEqual('single' in res.body, true);
assert.strictEqual('all' in res.body, true);
});
Expand Down Expand Up @@ -416,6 +417,7 @@ it('runs parent middleware for subrouter routes', async () => {
)
.get('/parent/sub')
.expect(200);

assert.strictEqual(res.body.msg, 'router');
});

Expand Down

0 comments on commit c37e557

Please sign in to comment.