Skip to content

Commit f959608

Browse files
committed
adds continuation to silence rejected promises
1 parent 03c1078 commit f959608

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/AuthenticationAdapters.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ describe('AuthenticationProviers', function() {
1010
var provider = require("../src/Adapters/Auth/" + providerName);
1111
jequal(typeof provider.validateAuthData, "function");
1212
jequal(typeof provider.validateAppId, "function");
13-
jequal(provider.validateAuthData({}, {}).constructor, Promise.prototype.constructor);
14-
jequal(provider.validateAppId("app", "key", {}).constructor, Promise.prototype.constructor);
13+
const authDataPromise = provider.validateAuthData({}, {});
14+
const validateAppIdPromise = provider.validateAppId("app", "key", {});
15+
jequal(authDataPromise.constructor, Promise.prototype.constructor);
16+
jequal(validateAppIdPromise.constructor, Promise.prototype.constructor);
17+
authDataPromise.then(()=>{}, ()=>{});
18+
validateAppIdPromise.then(()=>{}, ()=>{});
1519
done();
1620
});
1721
});

0 commit comments

Comments
 (0)