initial NearBeach
This commit is contained in:
28
NearBeach/tests/unit/users/NewUser.unit.js
Normal file
28
NearBeach/tests/unit/users/NewUser.unit.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import NewUser from "/src/js/components/users/NewUser.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' ParentModules.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(NewUser, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user