X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Flib%2Fresource-authenticator.js;h=182f2913250765b29a0f377032d9e2878ac17866;hb=efa8e263868de47ff3528561c5f4c8eeefbd5035;hp=826c484250628a159da1a15ca00595e204a987ed;hpb=69a2f5e7d73dd3f58e07b652c306daa8b253245d;p=squeep-resource-authentication-module diff --git a/test/lib/resource-authenticator.js b/test/lib/resource-authenticator.js index 826c484..182f291 100644 --- a/test/lib/resource-authenticator.js +++ b/test/lib/resource-authenticator.js @@ -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