Fix ScalarAuthClient test
This commit is contained in:
parent
25e4feeb38
commit
ba4e58513d
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ describe('ScalarAuthClient', function() {
|
||||||
it('should request a new token if the old one fails', async function() {
|
it('should request a new token if the old one fails', async function() {
|
||||||
const sac = new ScalarAuthClient();
|
const sac = new ScalarAuthClient();
|
||||||
|
|
||||||
sac._getAccountName = jest.fn((arg) => {
|
sac.getAccountName = jest.fn((arg) => {
|
||||||
switch (arg) {
|
switch (arg) {
|
||||||
case "brokentoken":
|
case "brokentoken":
|
||||||
return Promise.reject({
|
return Promise.reject({
|
||||||
|
|
Loading…
Reference in a new issue