remove @squeep/base64url dependency in lieu of native encoder
[squeep-resource-authentication-module] / test / lib / resource-authenticator.js
index 826c484250628a159da1a15ca00595e204a987ed..182f2913250765b29a0f377032d9e2878ac17866 100644 (file)
@@ -158,7 +158,7 @@ describe('Resource Authenticator', function () {
       const secret = 'secrety';
       sinon.stub(ResourceAuthenticator, 'currentEpoch').get(() => 1648836029);
       sinon.stub(ra, 'getSalt').resolves('xxxxx');
-      const expected = 'bq7ZSLHkEeyakQAlkF9xSg:1648836029:xxxxx:fdUYC8Gqe0nAyX_-SWvRsPsx0UjY-vV-Ff0A52j6Zfw';
+      const expected = 'Bearer bq7ZSLHkEeyakQAlkF9xSg:1648836029:xxxxx:fdUYC8Gqe0nAyX_-SWvRsPsx0UjY-vV-Ff0A52j6Zfw';
       const result = await ra.authenticate(identifier, secret);
       assert.strictEqual(result, expected);
     });
@@ -225,4 +225,4 @@ describe('Resource Authenticator', function () {
     });
   });
 
-}); // ResourceAuthenticator
\ No newline at end of file
+}); // ResourceAuthenticator