Skip to content

Commit

Permalink
fix: tests broke due to find-my-way update
Browse files Browse the repository at this point in the history
This fixes tests related to a recent `find-my-way` release. The relevant
change is: delvedor/find-my-way#321
  • Loading branch information
josephharrington authored and mmarchini committed Jun 18, 2023
1 parent 89e7ac8 commit f8beaae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"csv": "^6.2.2",
"escape-regexp-component": "^1.0.2",
"ewma": "^2.0.1",
"find-my-way": "^7.2.0",
"find-my-way": "^7.6.0",
"formidable": "^1.2.1",
"http-signature": "^1.3.6",
"lodash": "^4.17.11",
Expand Down
6 changes: 2 additions & 4 deletions test/router.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ test('toString()', function(t) {
t.deepEqual(
router.toString(),
// prettier-ignore
'└── / (GET)\n' +
' / (POST)\n' +
'└── / (GET, POST)\n' +
' └── a (GET)\n' +
' └── /b (GET)\n'
);
Expand All @@ -368,8 +367,7 @@ test('toString() with ignoreTrailingSlash', function(t) {
t.deepEqual(
router.toString(),
// prettier-ignore
'└── / (GET)\n' +
' / (POST)\n' +
'└── / (GET, POST)\n' +
' └── a (GET)\n' +
' └── /b (GET)\n'
);
Expand Down
6 changes: 2 additions & 4 deletions test/routerRegistryRadix.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ test('toString()', function(t) {
t.deepEqual(
registry.toString(),
// prettier-ignore
'└── / (GET)\n' +
' / (POST)\n' +
'└── / (GET, POST)\n' +
' └── a (GET)\n' +
' └── /b (GET)\n'
);
Expand All @@ -114,8 +113,7 @@ test('toString() with ignoreTrailingSlash', function(t) {
t.deepEqual(
registry.toString(),
// prettier-ignore
'└── / (GET)\n' +
' / (POST)\n' +
'└── / (GET, POST)\n' +
' └── a (GET)\n' +
' └── /b (GET)\n'
);
Expand Down

0 comments on commit f8beaae

Please sign in to comment.