Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41cca30

Browse files
BinaryMusekuychaco
authored andcommitted
Tweaks
1 parent 6e7e4e1 commit 41cca30

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/models/github-login-model.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ export class InMemoryStrategy {
6767
}
6868

6969
constructor() {
70-
// eslint-disable-next-line no-console
71-
console.warn(
72-
'Using an InMemoryStrategy strategy for storing tokens. ' +
73-
'The tokens will only be stored for the current window.',
74-
);
70+
if (!atom.inSpecMode()) {
71+
// eslint-disable-next-line no-console
72+
console.warn(
73+
'Using an InMemoryStrategy strategy for storing tokens. ' +
74+
'The tokens will only be stored for the current window.',
75+
);
76+
}
7577
this.passwordsByService = new Map();
7678
}
7779

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe.only('GithubLoginModel', function() {
2020
} else {
2121
// eslint-disable-next-line no-console
2222
console.warn(
23-
`Skipping tests for ${Strategy} as they are not supported on this platform (maybe your Atom is unsigned?)`,
23+
`Skipping tests for ${Strategy.name} as they are not supported on this platform (or maybe your Atom is unsigned?)`,
2424
);
2525
}
2626
});

0 commit comments

Comments
 (0)