Updated some unit tests.
This commit is contained in:
parent
09af8b4025
commit
2cbafd4b58
1 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import globalMethods from "@/global-methods";
|
import globalMethods from "@/global-methods";
|
||||||
import analyticsMixIn from "@/mixins/analytics-mixin";
|
import analyticsMixIn from "@/mixins/analytics-mixin";
|
||||||
|
import { getMountOptions } from "@/helpers/unit-test-helper.js";
|
||||||
|
|
||||||
//Mock external dependencies
|
//Mock external dependencies
|
||||||
jest.mock("axios");
|
jest.mock("axios");
|
||||||
|
|
@ -45,6 +46,8 @@ it("Global Methods - Call Http Client - Should Resolve Promise", () => {
|
||||||
}) {
|
}) {
|
||||||
//Clear node module
|
//Clear node module
|
||||||
axios.mockClear();
|
axios.mockClear();
|
||||||
|
|
||||||
|
const mountOptions = getMountOptions();
|
||||||
|
|
||||||
// Success Response
|
// Success Response
|
||||||
const response = {
|
const response = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue