Fixed unit tests
This commit is contained in:
parent
800f22ac90
commit
3c0002696f
1 changed files with 8 additions and 0 deletions
|
|
@ -7,6 +7,14 @@ import router from "@/router";
|
|||
jest.mock("axios");
|
||||
jest.mock("@/mixins/analytics-mixin");
|
||||
|
||||
global.$logger = {
|
||||
logInformation: jest.fn(),
|
||||
logWarning: jest.fn(),
|
||||
logError: jest.fn(),
|
||||
logCritical: jest.fn()
|
||||
|
||||
}
|
||||
|
||||
it("Global Methods - Call Http Client - Should Resolve Promise", () => {
|
||||
//Arrange
|
||||
const endpoint = "https://mock.safelite.com";
|
||||
|
|
|
|||
Loading…
Reference in a new issue