From f8beaaef64c0541185bc4c2d864948d3c1299cc9 Mon Sep 17 00:00:00 2001 From: Joey Harrington Date: Wed, 19 Apr 2023 17:47:55 -0700 Subject: [PATCH] fix: tests broke due to find-my-way update This fixes tests related to a recent `find-my-way` release. The relevant change is: https://github.com/delvedor/find-my-way/pull/321 --- package.json | 2 +- test/router.test.js | 6 ++---- test/routerRegistryRadix.test.js | 6 ++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 9b286180..f898fedd 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/router.test.js b/test/router.test.js index 769873c6..d6277cd6 100644 --- a/test/router.test.js +++ b/test/router.test.js @@ -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' ); @@ -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' ); diff --git a/test/routerRegistryRadix.test.js b/test/routerRegistryRadix.test.js index 16b264d7..5027b05e 100644 --- a/test/routerRegistryRadix.test.js +++ b/test/routerRegistryRadix.test.js @@ -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' ); @@ -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' );