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', () => {
|
||||
});
|
||||
})
|
||||
28
NearBeach/tests/unit/users/ResetUserPassword.unit.js
Normal file
28
NearBeach/tests/unit/users/ResetUserPassword.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 ResetUserPassword from "/src/js/components/users/ResetUserPassword.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(ResetUserPassword, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {
|
||||
});
|
||||
})
|
||||
31
NearBeach/tests/unit/users/UserInformation.unit.js
Normal file
31
NearBeach/tests/unit/users/UserInformation.unit.js
Normal file
@@ -0,0 +1,31 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import UserInformation from "/src/js/components/users/UserInformation.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(UserInformation, {
|
||||
props: {
|
||||
rootUrl:"/",
|
||||
userResults:[{"model":"auth.user","pk":7,"fields":{"password":"pbkdf2_sha256$600000$mm3IyCbjcofqWTSssaWcu6$dmbngBObwSr8Glv4jKyL1LandqtPNJ3epNfTT9dTs4U=","last_login":"2023-11-22T10:57:06.155Z","is_superuser":true,"username":"dark_admin","first_name":"Dark","last_name":"Admin","email":"support@nearbeach.org","is_staff":false,"is_active":true,"date_joined":"2023-09-06T09:36:15.453Z","groups":[],"user_permissions":[]}}],
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user