Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit e8f41f1

Browse files
committed
Use UNAUTHORIZED constant in GithubLoginModel tests
1 parent 9a81c9a commit e8f41f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/models/github-login-model.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
InMemoryStrategy,
66
UNAUTHENTICATED,
77
INSUFFICIENT,
8+
UNAUTHORIZED,
89
} from '../../lib/shared/keytar-strategy';
910

1011
describe('GithubLoginModel', function() {
@@ -69,7 +70,7 @@ describe('GithubLoginModel', function() {
6970
});
7071

7172
it('caches tokens that failed to authenticate correctly', async function() {
72-
sinon.stub(loginModel, 'getScopes').resolves(GithubLoginModel.UNAUTHORIZED);
73+
sinon.stub(loginModel, 'getScopes').resolves(UNAUTHORIZED);
7374

7475
assert.strictEqual(await loginModel.getToken('https://api.github.com'), UNAUTHENTICATED);
7576
assert.strictEqual(loginModel.getScopes.callCount, 1);

0 commit comments

Comments
 (0)