From 958828d1c86383b4fcca575aabd4e65ee636d0aa Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Fri, 26 Jan 2024 15:59:20 -0500 Subject: [PATCH] fix flaw in unit test for root site access rules They aren't written with trailing slashes, the code needs to account for that. --- src/authorizeRequest/authorizeRequest.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authorizeRequest/authorizeRequest.test.js b/src/authorizeRequest/authorizeRequest.test.js index 5b07223..2912312 100644 --- a/src/authorizeRequest/authorizeRequest.test.js +++ b/src/authorizeRequest/authorizeRequest.test.js @@ -34,7 +34,7 @@ ddbMock.on(GetCommand, { }), }, }).on(GetCommand, { - Key: { PK: 'example.host.bu.edu/#somegroup' }, + Key: { PK: 'example.host.bu.edu#somegroup' }, }).resolves({ Item: { rules: JSON.stringify({