Skip to content

Commit

Permalink
Moved error expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Sep 24, 2020
1 parent 7422f90 commit 5437fbd
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,8 @@ describe('CredentialsLogic', () => {
try {
await promise;
} catch {
// Ignore this
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
}
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
});
});

Expand Down Expand Up @@ -1159,9 +1158,8 @@ describe('CredentialsLogic', () => {
try {
await promise;
} catch {
// Ignore this
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
}
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
});
});

Expand Down Expand Up @@ -1191,9 +1189,8 @@ describe('CredentialsLogic', () => {
try {
await promise;
} catch {
// Ignore this
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
}
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
});
});
});

0 comments on commit 5437fbd

Please sign in to comment.