adds test for restore method on authenticator

This commit is contained in:
Seyi Adebajo 2018-01-22 16:20:39 -08:00
parent 2e873b64d5
commit 39fff3e182

View File

@ -36,3 +36,10 @@ test('Authenticate methods work as expected', async function(assert) {
assert.ok(typeof response.then === 'function', 'returns a Promise object or thennable');
assert.equal((await response).username, data.username, 'authenticate correctly resolves with api response');
});
test('Restore method works as expected', function(assert) {
const authenticator = new Authenticator();
const response = authenticator.restore();
assert.ok(typeof response.then === 'function', 'returns a Promise object or thennable');
});