initial NearBeach
This commit is contained in:
30
NearBeach/tests/unit/administration/AdminAddUser.unit.js
Normal file
30
NearBeach/tests/unit/administration/AdminAddUser.unit.js
Normal file
@@ -0,0 +1,30 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AdminAddUser from "/src/js/components/administration/AdminAddUser.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AdminAddUser, {
|
||||
props: {
|
||||
destination: "project",
|
||||
locationId: 1,
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,23 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ConfirmPermissionDelete from "/src/js/components/administration/ConfirmPermissionDelete.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('ConfirmPermissionDelete.vue', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ConfirmPermissionDelete, {
|
||||
props: {
|
||||
permissionDeleteId: 0,
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
45
NearBeach/tests/unit/administration/UserList.unit.js
Normal file
45
NearBeach/tests/unit/administration/UserList.unit.js
Normal file
@@ -0,0 +1,45 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import UserList from "/src/js/components/administration/UserList.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(UserList, {
|
||||
props: {
|
||||
destination: "user",
|
||||
locationId: 1,
|
||||
theme: "light",
|
||||
userListResults: [
|
||||
{
|
||||
"user_group_id":1,
|
||||
"username":1,
|
||||
"username__first_name":"Socks",
|
||||
"username__last_name":"Fluffybutt",
|
||||
"username__email":"support@nearbeach.org",
|
||||
"group":1,
|
||||
"group__group_name":"Administration",
|
||||
"group_leader":true,
|
||||
"permission_set":1,
|
||||
"permission_set__permission_set_name":"Administration Permission Set"
|
||||
},
|
||||
],
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
4
NearBeach/tests/unit/blank.unit.js
Normal file
4
NearBeach/tests/unit/blank.unit.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// Vitest
|
||||
import { test } from "vitest";
|
||||
|
||||
test('blank', () => {});
|
||||
22
NearBeach/tests/unit/card_information/AddUserToCard.unit.js
Normal file
22
NearBeach/tests/unit/card_information/AddUserToCard.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AddUserToCard from "/src/js/components/card_information/AddUserToCard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AddUserToCard, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CardDescription from "/src/js/components/card_information/CardDescription.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CardDescription, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/card_information/CardDetails.unit.js
Normal file
22
NearBeach/tests/unit/card_information/CardDetails.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CardDetails from "/src/js/components/card_information/CardDetails.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CardDetails, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,29 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CardInformation from "/src/js/components/card_information/CardInformation.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CardInformation, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
inject: ["nextTick"],
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/card_information/CardNotes.unit.js
Normal file
22
NearBeach/tests/unit/card_information/CardNotes.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CardNotes from "/src/js/components/card_information/CardNotes.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CardNotes, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/card_information/CardUsers.unit.js
Normal file
22
NearBeach/tests/unit/card_information/CardUsers.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CardUsers from "/src/js/components/card_information/CardUsers.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CardUsers, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
101
NearBeach/tests/unit/change_task/ChangeTaskInformation.unit.js
Normal file
101
NearBeach/tests/unit/change_task/ChangeTaskInformation.unit.js
Normal file
@@ -0,0 +1,101 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ChangeTaskInformation from "/src/js/components/change_task/ChangeTaskInformation.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ChangeTaskInformation, {
|
||||
props: {
|
||||
changeTaskResults: [
|
||||
{
|
||||
"model":"NearBeach.changetask",
|
||||
"pk":1,
|
||||
"fields":{
|
||||
"request_for_change":1,
|
||||
"change_task_title":"Administration - Back up - Change Task",
|
||||
"change_task_description":"<p>Description is optional</p>",
|
||||
"change_task_start_date":"2023-02-14T22:00:00Z",
|
||||
"change_task_end_date":"2023-03-01T05:00:00Z",
|
||||
"change_task_seconds":1234800000,
|
||||
"change_task_assigned_user":1,
|
||||
"change_task_qa_user":2,
|
||||
"change_task_required_by":"Stakeholder(s)",
|
||||
"change_task_status":1,
|
||||
"is_downtime":false,
|
||||
"date_created":"2023-02-15T09:15:34.805Z",
|
||||
"date_modified":"2023-10-06T10:05:33.935Z",
|
||||
"change_user":1,
|
||||
"creation_user":1,
|
||||
"is_deleted":false
|
||||
}
|
||||
},
|
||||
],
|
||||
destination: "change_task",
|
||||
locationId: 1,
|
||||
rfcStatus: "Draft",
|
||||
userLevel: 4,
|
||||
userList: [
|
||||
{
|
||||
"id":1,
|
||||
"email":"support@nearbeach.org",
|
||||
"first_name": "Admin",
|
||||
"last_name":"User",
|
||||
"username":"admin"
|
||||
},
|
||||
{
|
||||
"id":2,
|
||||
"email":"support@nearbeach.org",
|
||||
"first_name":"Team",
|
||||
"last_name":"Leader",
|
||||
"username":"team_leader"
|
||||
},
|
||||
{
|
||||
"id":3,
|
||||
"email":"support@nearbeach.org",
|
||||
"first_name":"Team",
|
||||
"last_name":"Member",
|
||||
"username":"team_member"
|
||||
},
|
||||
{
|
||||
"id":4,
|
||||
"email":"support@nearbeach.org",
|
||||
"first_name":"Team",
|
||||
"last_name":"Intern",
|
||||
"username":"team_intern"
|
||||
},
|
||||
{
|
||||
"id":5,
|
||||
"email":"support@nearbeach.org",
|
||||
"first_name":"Read",
|
||||
"last_name":"Only",
|
||||
"username":"read_only"
|
||||
},
|
||||
{
|
||||
"id":6,
|
||||
"email":"support@nearbeach.org",
|
||||
"first_name":"No",
|
||||
"last_name":"Group",
|
||||
"username":"no_group"
|
||||
},
|
||||
{
|
||||
"id":7,
|
||||
"email":"support@nearbeach.org",
|
||||
"first_name":"Dark",
|
||||
"last_name":"Admin",
|
||||
"username":"dark_admin"
|
||||
}
|
||||
],
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
24
NearBeach/tests/unit/change_task/ChangeTaskModules.unit.js
Normal file
24
NearBeach/tests/unit/change_task/ChangeTaskModules.unit.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ChangeTaskModules from "/src/js/components/change_task/ChangeTaskModules.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// describe('ChangeTaskModules.vue - rendering component.', () => {
|
||||
// //Using mount - insert data
|
||||
// const wrapper = mount(ChangeTaskModules, {
|
||||
// props: {
|
||||
// },
|
||||
// global: {
|
||||
// plugins: [store],
|
||||
// },
|
||||
// });
|
||||
//
|
||||
// test('Empty test', () => {});
|
||||
// });
|
||||
|
||||
test('Empty test', () => {});
|
||||
22
NearBeach/tests/unit/change_task/NewChangeTask.unit.js
Normal file
22
NearBeach/tests/unit/change_task/NewChangeTask.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import NewChangeTask from "/src/js/components/change_task/NewChangeTask.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(NewChangeTask, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ChangeTaskDescription from "/src/js/components/change_task/modules/ChangeTaskDescription.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ChangeTaskDescription, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,24 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ChangeTaskLinkList from "/src/js/components/change_task/modules/ChangeTaskLinkList.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// describe('ChangeTaskLinkList.vue - rendering component', () => {
|
||||
// //Using mount - insert data
|
||||
// const wrapper = mount(ChangeTaskLinkList, {
|
||||
// props: {
|
||||
// },
|
||||
// global: {
|
||||
// plugins: [store],
|
||||
// },
|
||||
// });
|
||||
//
|
||||
// test('Empty test', () => {});
|
||||
// });
|
||||
|
||||
test('Empty test', () => {});
|
||||
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ChangeTaskMisc from "/src/js/components/change_task/modules/ChangeTaskMisc.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ChangeTaskMisc, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ConfirmChangeTaskDelete from "/src/js/components/change_task/modules/ConfirmChangeTaskDelete.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ConfirmChangeTaskDelete, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/change_task/modules/IsDowntime.unit.js
Normal file
22
NearBeach/tests/unit/change_task/modules/IsDowntime.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import IsDowntime from "/src/js/components/change_task/modules/IsDowntime.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(IsDowntime, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/change_task/modules/RequiredBy.unit.js
Normal file
22
NearBeach/tests/unit/change_task/modules/RequiredBy.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import RequiredBy from "/src/js/components/change_task/modules/RequiredBy.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('AdminAddUser.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(RequiredBy, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
43
NearBeach/tests/unit/customers/CustomerInformation.unit.js
Normal file
43
NearBeach/tests/unit/customers/CustomerInformation.unit.js
Normal file
@@ -0,0 +1,43 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CustomerInformation from "/src/js/components/customers/CustomerInformation.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CustomerInformation, {
|
||||
props: {
|
||||
customerResults: [
|
||||
{
|
||||
"model":"NearBeach.customer",
|
||||
"pk":1,
|
||||
"fields": {
|
||||
"customer_title":2,
|
||||
"customer_first_name":"Socks",
|
||||
"customer_last_name":"Fluffy",
|
||||
"customer_email":"socks@nearbeach.org",
|
||||
"customer_profile_picture":null,
|
||||
"organisation":1,
|
||||
"date_created":"2023-02-15T08:57:03.560Z",
|
||||
"date_modified":"2023-02-15T08:57:03.560Z",
|
||||
"change_user":1,
|
||||
"is_deleted":false
|
||||
}
|
||||
}
|
||||
],
|
||||
organisationResults: [{"model":"NearBeach.organisation","pk":1,"fields":{"organisation_name":"NearBeach Incorporate","organisation_website":"https://nearbeach.org","organisation_email":"support@nearbeach.org","organisation_profile_picture":null,"date_created":"2023-02-15T08:56:40.669Z","date_modified":"2023-02-15T08:56:40.669Z","change_user":1,"is_deleted":false}}],
|
||||
titleList: [{"model":"NearBeach.listoftitle","pk":1,"fields":{"title":"Mr","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":2,"fields":{"title":"Ms","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":3,"fields":{"title":"Mrs","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":4,"fields":{"title":"Mx","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}}],
|
||||
userLevel: 4,
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
43
NearBeach/tests/unit/customers/CustomerModules.unit.js
Normal file
43
NearBeach/tests/unit/customers/CustomerModules.unit.js
Normal file
@@ -0,0 +1,43 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CustomerModules from "/src/js/components/customers/CustomerModules.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CustomerModules, {
|
||||
props: {
|
||||
customerResults: [
|
||||
{
|
||||
"model":"NearBeach.customer",
|
||||
"pk":1,
|
||||
"fields": {
|
||||
"customer_title":2,
|
||||
"customer_first_name":"Socks",
|
||||
"customer_last_name":"Fluffy",
|
||||
"customer_email":"socks@nearbeach.org",
|
||||
"customer_profile_picture":null,
|
||||
"organisation":1,
|
||||
"date_created":"2023-02-15T08:57:03.560Z",
|
||||
"date_modified":"2023-02-15T08:57:03.560Z",
|
||||
"change_user":1,
|
||||
"is_deleted":false
|
||||
}
|
||||
}
|
||||
],
|
||||
organisationResults: [{"model":"NearBeach.organisation","pk":1,"fields":{"organisation_name":"NearBeach Incorporate","organisation_website":"https://nearbeach.org","organisation_email":"support@nearbeach.org","organisation_profile_picture":null,"date_created":"2023-02-15T08:56:40.669Z","date_modified":"2023-02-15T08:56:40.669Z","change_user":1,"is_deleted":false}}],
|
||||
titleList: [{"model":"NearBeach.listoftitle","pk":1,"fields":{"title":"Mr","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":2,"fields":{"title":"Ms","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":3,"fields":{"title":"Mrs","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":4,"fields":{"title":"Mx","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}}],
|
||||
userLevel: 4,
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
100
NearBeach/tests/unit/customers/ListCustomers.unit.js
Normal file
100
NearBeach/tests/unit/customers/ListCustomers.unit.js
Normal file
@@ -0,0 +1,100 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { mount } from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ListCustomers from "/src/js/components/customers/ListCustomers.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('ListCustomers.vue - list two customers', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ListCustomers, {
|
||||
props: {
|
||||
customerResults: [
|
||||
{
|
||||
"model":"NearBeach.customer",
|
||||
"pk":1,
|
||||
"fields":{
|
||||
"customer_title":2,
|
||||
"customer_first_name":"Socks",
|
||||
"customer_last_name":"Fluffy",
|
||||
"customer_email":"socks@nearbeach.org",
|
||||
"customer_profile_picture":"deb6dff2-74e6-4058-b30b-d7f4d015d2f0",
|
||||
"organisation":1,
|
||||
"date_created":"2023-02-15T08:57:03.560Z",
|
||||
"date_modified":"2023-07-15T07:16:58.841Z",
|
||||
"change_user":1,
|
||||
"is_deleted":false
|
||||
}
|
||||
},
|
||||
{
|
||||
"model":"NearBeach.customer",
|
||||
"pk":2,
|
||||
"fields":{
|
||||
"customer_title":2,
|
||||
"customer_first_name":"Toby",
|
||||
"customer_last_name":"Tripod",
|
||||
"customer_email":"toby.tripod@nearbeach.org",
|
||||
"customer_profile_picture":"",
|
||||
"organisation":1,
|
||||
"date_created":"2023-02-15T08:57:03.560Z",
|
||||
"date_modified":"2023-07-15T07:16:58.841Z",
|
||||
"change_user":1,
|
||||
"is_deleted":false
|
||||
}
|
||||
}
|
||||
],
|
||||
},
|
||||
global: {
|
||||
plugins: [store]
|
||||
}
|
||||
});
|
||||
|
||||
//Gather the list of customers rendered onto the page
|
||||
const customers = wrapper.findAll('.customer-details');
|
||||
|
||||
test('customer 1 will have a custom profile picture', () => {
|
||||
const customer_1_profile = customers[0].find('.customer-image');
|
||||
|
||||
//Check the image location
|
||||
expect(customer_1_profile.html()).toContain('<img src="/private/deb6dff2-74e6-4058-b30b-d7f4d015d2f0');
|
||||
});
|
||||
|
||||
test('customer 2 will have the default profile picture', () => {
|
||||
const customer_2_profile = customers[1].find('.customer-image');
|
||||
|
||||
//Check the image location
|
||||
expect(customer_2_profile.html()).toContain('<img src="/static/NearBeach/images/placeholder/product_tour.svg"');
|
||||
});
|
||||
|
||||
test('both customer\'s names, emails, and hyperlinks are rendered out correctly', () => {
|
||||
const customer_1_name = customers[0].find('.customer-name');
|
||||
const customer_2_name = customers[1].find('.customer-name');
|
||||
|
||||
//Check names
|
||||
expect(customer_1_name.text()).toEqual('Socks Fluffy');
|
||||
expect(customer_2_name.text()).toEqual('Toby Tripod');
|
||||
|
||||
//Check hyperlinks
|
||||
expect(customer_1_name.html()).toContain('<a href="/customer_information/1/">');
|
||||
expect(customer_2_name.html()).toContain('<a href="/customer_information/2/">');
|
||||
});
|
||||
|
||||
test('customer 1s email is rendered out correctly', () => {
|
||||
const customer_1_email = customers[0].find('.customer-email');
|
||||
const customer_2_email = customers[1].find('.customer-email');
|
||||
|
||||
//Check email
|
||||
expect(customer_1_email.text()).toContain('socks@nearbeach.org');
|
||||
expect(customer_2_email.text()).toContain('toby.tripod@nearbeach.org');
|
||||
|
||||
//Check hyperlinks
|
||||
expect(customer_1_email.html()).toContain('<a href="mailto:socks@nearbeach.org">');
|
||||
expect(customer_2_email.html()).toContain('<a href="mailto:toby.tripod@nearbeach.org">');
|
||||
});
|
||||
|
||||
//We should also look at the "add customer" button. This should not render when the user does not have
|
||||
//enough permissions.
|
||||
})
|
||||
29
NearBeach/tests/unit/customers/NewCustomer.unit.js
Normal file
29
NearBeach/tests/unit/customers/NewCustomer.unit.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import NewCustomer from "/src/js/components/customers/NewCustomer.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(NewCustomer, {
|
||||
props: {
|
||||
titleList: [{"model":"NearBeach.listoftitle","pk":1,"fields":{"title":"Mr","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":2,"fields":{"title":"Ms","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":3,"fields":{"title":"Mrs","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}},{"model":"NearBeach.listoftitle","pk":4,"fields":{"title":"Mx","date_created":"2023-02-15T08:51:58.374Z","date_modified":"2023-02-15T08:51:58.374Z","change_user":null,"is_deleted":false}}],
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/customers/NewCustomerForm.unit.js
Normal file
22
NearBeach/tests/unit/customers/NewCustomerForm.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import NewCustomerForm from "/src/js/components/customers/NewCustomerForm.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(NewCustomerForm, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/customers/NewCustomerModal.unit.js
Normal file
22
NearBeach/tests/unit/customers/NewCustomerModal.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import NewCustomerModal from "/src/js/components/customers/NewCustomerModal.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(NewCustomerModal, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
28
NearBeach/tests/unit/dashboard/DashboardKanbanList.unit.js
Normal file
28
NearBeach/tests/unit/dashboard/DashboardKanbanList.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 DashboardKanbanList from "/src/js/components/dashboard/DashboardKanbanList.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(DashboardKanbanList, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
28
NearBeach/tests/unit/dashboard/DashboardMyObjects.unit.js
Normal file
28
NearBeach/tests/unit/dashboard/DashboardMyObjects.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 DashboardMyObjects from "/src/js/components/dashboard/DashboardMyObjects.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(DashboardMyObjects, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
28
NearBeach/tests/unit/dashboard/DashboardRfcApprovals.unit.js
Normal file
28
NearBeach/tests/unit/dashboard/DashboardRfcApprovals.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 DashboardRfcApprovals from "/src/js/components/dashboard/DashboardRfcApprovals.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(DashboardRfcApprovals, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import DashboardUnassignedObjects from "/src/js/components/dashboard/DashboardUnassignedObjects.vue"
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(DashboardUnassignedObjects, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,30 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import DashboardUsersWithNoGroups from "/src/js/components/dashboard/DashboardUsersWithNoGroups.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(DashboardUsersWithNoGroups, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
properties: [axios],
|
||||
axios: axios,
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/dates/BetweenDates.unit.js
Normal file
22
NearBeach/tests/unit/dates/BetweenDates.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BetweenDates from "/src/js/components/dates/BetweenDates.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BetweenDates, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/diagnostics/DiagnosticEmailTest.unit.js
Normal file
22
NearBeach/tests/unit/diagnostics/DiagnosticEmailTest.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BetweenDates from "/src/js/components/diagnostic/DiagnosticEmailTest.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('DiagnosticEmailTest.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BetweenDates, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BetweenDates from "/src/js/components/diagnostic/DiagnosticInformation.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('DiagnosticInformation.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BetweenDates, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BetweenDates from "/src/js/components/diagnostic/DiagnosticUploadTest.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('DiagnosticUploadTest.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BetweenDates, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/gantt_chart/GanttInformation.unit.js
Normal file
22
NearBeach/tests/unit/gantt_chart/GanttInformation.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BetweenDates from "/src/js/components/gantt_chart/GanttInformation.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('GanttInformation.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BetweenDates, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BetweenDates from "/src/js/components/gantt_chart/RenderGanttDaysHeader.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('RenderGanttDaysHeader.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BetweenDates, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BetweenDates from "/src/js/components/gantt_chart/RenderGanttMonthlyHeader.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('RenderGanttMonthlyHeader.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BetweenDates, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/gantt_chart/RenderGanttRow.unit.js
Normal file
22
NearBeach/tests/unit/gantt_chart/RenderGanttRow.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BetweenDates from "/src/js/components/gantt_chart/RenderGanttRow.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('RenderGanttRow.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BetweenDates, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
28
NearBeach/tests/unit/groups/ConfirmGroupDelete.unit.js
Normal file
28
NearBeach/tests/unit/groups/ConfirmGroupDelete.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 ConfirmGroupDelete from "/src/js/components/groups/ConfirmGroupDelete.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
import axios from "axios";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ConfirmGroupDelete, {
|
||||
props: {
|
||||
groupResults: [{"model":"NearBeach.group","pk":2,"fields":{"group_name":"QA Team","parent_group":null,"date_created":"2023-02-15T08:57:34.987Z","date_modified":"2023-02-15T08:57:34.987Z","change_user":1,"is_deleted":false}}],
|
||||
parentGroupResults: [{"model":"NearBeach.group","pk":1,"fields":{"group_name":"Administration","parent_group":null,"date_created":"2023-02-15T08:56:14.216Z","date_modified":"2023-02-15T08:56:14.216Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":2,"fields":{"group_name":"QA Team","parent_group":null,"date_created":"2023-02-15T08:57:34.987Z","date_modified":"2023-02-15T08:57:34.987Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":3,"fields":{"group_name":"Empty Group","parent_group":null,"date_created":"2023-02-15T08:57:47.633Z","date_modified":"2023-02-15T08:57:47.633Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":4,"fields":{"group_name":"No Group","parent_group":null,"date_created":"2023-02-15T08:57:55.934Z","date_modified":"2023-02-15T08:57:55.934Z","change_user":1,"is_deleted":false}}],
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
24
NearBeach/tests/unit/groups/GroupInformation.unit.js
Normal file
24
NearBeach/tests/unit/groups/GroupInformation.unit.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import GroupInformation from "/src/js/components/groups/GroupInformation.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(GroupInformation, {
|
||||
props: {
|
||||
groupResults: [{"model":"NearBeach.group","pk":2,"fields":{"group_name":"QA Team","parent_group":null,"date_created":"2023-02-15T08:57:34.987Z","date_modified":"2023-02-15T08:57:34.987Z","change_user":1,"is_deleted":false}}],
|
||||
parentGroupResults: [{"model":"NearBeach.group","pk":1,"fields":{"group_name":"Administration","parent_group":null,"date_created":"2023-02-15T08:56:14.216Z","date_modified":"2023-02-15T08:56:14.216Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":2,"fields":{"group_name":"QA Team","parent_group":null,"date_created":"2023-02-15T08:57:34.987Z","date_modified":"2023-02-15T08:57:34.987Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":3,"fields":{"group_name":"Empty Group","parent_group":null,"date_created":"2023-02-15T08:57:47.633Z","date_modified":"2023-02-15T08:57:47.633Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.group","pk":4,"fields":{"group_name":"No Group","parent_group":null,"date_created":"2023-02-15T08:57:55.934Z","date_modified":"2023-02-15T08:57:55.934Z","change_user":1,"is_deleted":false}}],
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
22
NearBeach/tests/unit/groups/NewGroup.unit.js
Normal file
22
NearBeach/tests/unit/groups/NewGroup.unit.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import NewGroup from "/src/js/components/groups/NewGroup.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('NewChangeTask.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(NewGroup, {
|
||||
props: {
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonArrowUp.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonArrowUp.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonArrowUp from "/src/js/components/icons/CarbonArrowUp.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonArrowUp.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonArrowUp, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonCloseOutline.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonCloseOutline.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonCloseOutline from "/src/js/components/icons/CarbonCloseOutline.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonCloseOutline.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonCloseOutline, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonConnectionFlowUsage.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonConnectionFlowUsage.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonConnectionFlowUsage from "/src/js/components/icons/CarbonConnectionFlowUsage.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonConnectionFlowUsage.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonConnectionFlowUsage, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonDocument.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonDocument.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonDocument from "/src/js/components/icons/CarbonDocument.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonDocument.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonDocument, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonDocumentPdf.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonDocumentPdf.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonDocumentPdf from "/src/js/components/icons/CarbonDocumentPdf.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonDocumentPdf.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonDocumentPdf, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonEmail.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonEmail.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonEmail from "/src/js/components/icons/CarbonEmail.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonEmail.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonEmail, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonFolder.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonFolder.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonFolder from "/src/js/components/icons/CarbonFolder.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonFolder.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonFolder, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonImage.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonImage.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonImage from "/src/js/components/icons/CarbonImage.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonImage.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonImage, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonInformation.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonInformation.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonInformation from "/src/js/components/icons/CarbonInformation.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonInformation.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonInformation, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonLink.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonLink.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonLink from "/src/js/components/icons/CarbonLink.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonLink.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonLink, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/CarbonTrashCan.unit.js
Normal file
19
NearBeach/tests/unit/icons/CarbonTrashCan.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CarbonTrashCan from "/src/js/components/icons/CarbonTrashCan.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('CarbonTrashCan.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CarbonTrashCan, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/MdiMicrosoftExcel.unit.js
Normal file
19
NearBeach/tests/unit/icons/MdiMicrosoftExcel.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import MdiMicrosoftExcel from "/src/js/components/icons/MdiMicrosoftExcel.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('MdiMicrosoftExcel.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(MdiMicrosoftExcel, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/MdiMicrosoftPowerPoint.unit.js
Normal file
19
NearBeach/tests/unit/icons/MdiMicrosoftPowerPoint.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import MdiMicrosoftPowerPoint from "/src/js/components/icons/MdiMicrosoftPowerPoint.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('MdiMicrosoftPowerPoint.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(MdiMicrosoftPowerPoint, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
19
NearBeach/tests/unit/icons/MdiMicrosoftWork.unit.js
Normal file
19
NearBeach/tests/unit/icons/MdiMicrosoftWork.unit.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import MdiMicrosoftWord from "/src/js/components/icons/MdiMicrosoftWord.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
describe('MdiMicrosoftWord.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(MdiMicrosoftWord, {
|
||||
props: {
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/kanban/ArchiveCards.unit.js
Normal file
27
NearBeach/tests/unit/kanban/ArchiveCards.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ArchiveCards from "/src/js/components/kanban/ArchiveCards.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('ArchiveCards.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ArchiveCards, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/kanban/BlockedNotesModal.unit.js
Normal file
27
NearBeach/tests/unit/kanban/BlockedNotesModal.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BlockedNotesModal from "/src/js/components/kanban/BlockedNotesModal.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('BlockedNotesModal.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BlockedNotesModal, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/kanban/ConfirmCardArchive.unit.js
Normal file
27
NearBeach/tests/unit/kanban/ConfirmCardArchive.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BlockedNotesModal from "/src/js/components/kanban/BlockedNotesModal.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('BlockedNotesModal.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BlockedNotesModal, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ConfirmKanbanBoardClosure from "/src/js/components/kanban/ConfirmKanbanBoardClosure.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('ConfirmKanbanBoardClosure.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ConfirmKanbanBoardClosure, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/kanban/ConfirmKanbanBoardReopen.unit.js
Normal file
27
NearBeach/tests/unit/kanban/ConfirmKanbanBoardReopen.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ConfirmKanbanBoardReopen from "/src/js/components/kanban/ConfirmKanbanBoardReopen.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('ConfirmKanbanBoardReopen.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ConfirmKanbanBoardReopen, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
30
NearBeach/tests/unit/kanban/KanbanBoard.unit.js
Normal file
30
NearBeach/tests/unit/kanban/KanbanBoard.unit.js
Normal file
@@ -0,0 +1,30 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanBoard from "/src/js/components/kanban/KanbanBoard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('BlockedNotesModal.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanBoard, {
|
||||
props: {
|
||||
kanbanBoardResults: [{"model":"NearBeach.kanbanboard","pk":1,"fields":{"kanban_board_name":"Kanban Admin Only","requirement":null,"kanban_board_status":"Open","date_created":"2023-02-15T09:12:31.594Z","date_modified":"2023-02-15T09:12:31.594Z","change_user":1,"creation_user":1,"is_deleted":false}}],
|
||||
newCardInfo: [],
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
32
NearBeach/tests/unit/kanban/KanbanColumn.unit.js
Normal file
32
NearBeach/tests/unit/kanban/KanbanColumn.unit.js
Normal file
@@ -0,0 +1,32 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanColumn from "/src/js/components/kanban/KanbanColumn.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('KanbanColumn.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanColumn, {
|
||||
props: {
|
||||
columnId:1,
|
||||
columnProperty:"Normal",
|
||||
levelId:1,
|
||||
newCardInfo:[],
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/kanban/KanbanDangerZone.unit.js
Normal file
27
NearBeach/tests/unit/kanban/KanbanDangerZone.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanDangerZone from "/src/js/components/kanban/KanbanDangerZone.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('KanbanDangerZone.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanDangerZone, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
36
NearBeach/tests/unit/kanban/KanbanEditBoard.unit.js
Normal file
36
NearBeach/tests/unit/kanban/KanbanEditBoard.unit.js
Normal file
@@ -0,0 +1,36 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanEditBoard from "/src/js/components/kanban/KanbanEditBoard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('KanbanEditBoard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanEditBoard, {
|
||||
props: {
|
||||
columnResults:[{"model":"NearBeach.kanbancolumn","pk":1,"fields":{"kanban_column_name":"Backlog","kanban_column_property":"Normal","kanban_column_sort_number":0,"kanban_board":1,"date_created":"2023-02-15T09:12:31.597Z","date_modified":"2023-02-15T09:12:31.597Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbancolumn","pk":2,"fields":{"kanban_column_name":"Blocked","kanban_column_property":"Blocked","kanban_column_sort_number":1,"kanban_board":1,"date_created":"2023-02-15T09:12:31.599Z","date_modified":"2023-02-15T09:12:31.599Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbancolumn","pk":3,"fields":{"kanban_column_name":"In Progress","kanban_column_property":"Normal","kanban_column_sort_number":2,"kanban_board":1,"date_created":"2023-02-15T09:12:31.600Z","date_modified":"2023-02-15T09:12:31.600Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbancolumn","pk":4,"fields":{"kanban_column_name":"Review and QA","kanban_column_property":"Normal","kanban_column_sort_number":3,"kanban_board":1,"date_created":"2023-02-15T09:12:31.600Z","date_modified":"2023-02-15T09:12:31.601Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbancolumn","pk":5,"fields":{"kanban_column_name":"Completed","kanban_column_property":"Closed","kanban_column_sort_number":4,"kanban_board":1,"date_created":"2023-02-15T09:12:31.601Z","date_modified":"2023-02-15T09:12:31.602Z","change_user":1,"is_deleted":false}}],
|
||||
kanbanBoardResults:[{"model":"NearBeach.kanbanboard","pk":1,"fields":{"kanban_board_name":"Kanban Admin Only","requirement":null,"kanban_board_status":"Open","date_created":"2023-02-15T09:12:31.594Z","date_modified":"2023-02-15T09:12:31.594Z","change_user":1,"creation_user":1,"is_deleted":false}}],
|
||||
levelResults:[{"model":"NearBeach.kanbanlevel","pk":1,"fields":{"kanban_level_name":"Sprint 1","kanban_level_sort_number":0,"kanban_board":1,"date_created":"2023-02-15T09:12:31.603Z","date_modified":"2023-02-15T09:12:31.603Z","change_user":1,"is_deleted":false}},{"model":"NearBeach.kanbanlevel","pk":2,"fields":{"kanban_level_name":"Sprint 2","kanban_level_sort_number":1,"kanban_board":1,"date_created":"2023-02-15T09:12:31.604Z","date_modified":"2023-02-15T09:12:31.604Z","change_user":1,"is_deleted":false}}],
|
||||
locationId:1,
|
||||
rootUrl:"/",
|
||||
staticUrl:"/static/",
|
||||
theme:"dark",
|
||||
userLevel:4
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
// axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/kanban/KanbanGroupPermissions.unit.js
Normal file
27
NearBeach/tests/unit/kanban/KanbanGroupPermissions.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanGroupPermissions from "/src/js/components/kanban/KanbanGroupPermissions.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('KanbanGroupPermission.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanGroupPermissions, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
40
NearBeach/tests/unit/kanban/KanbanInformation.unit.js
Normal file
40
NearBeach/tests/unit/kanban/KanbanInformation.unit.js
Normal file
File diff suppressed because one or more lines are too long
34
NearBeach/tests/unit/kanban/KanbanPropertyOrder.unit.js
Normal file
34
NearBeach/tests/unit/kanban/KanbanPropertyOrder.unit.js
Normal file
@@ -0,0 +1,34 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanPropertyOrder from "/src/js/components/kanban/KanbanPropertyOrder.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('KanbanPropertyOrder.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanPropertyOrder, {
|
||||
props: {
|
||||
isDirty:false,
|
||||
isNewMode:false,
|
||||
kanbanBoardId:1,
|
||||
propertyList:[{"id":1,"property":"Normal","title":"Backlog"},{"id":2,"property":"Blocked","title":"Blocked"},{"id":3,"property":"Normal","title":"In Progress"},{"id":4,"property":"Normal","title":"Review and QA"},{"id":5,"property":"Closed","title":"Completed"}],
|
||||
propertyName:"Column",
|
||||
source:"columnModel",
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/kanban/KanbanPublicLinks.unit.js
Normal file
27
NearBeach/tests/unit/kanban/KanbanPublicLinks.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanPublicLinks from "/src/js/components/kanban/KanbanPublicLinks.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('KanbanPublicLinks.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanPublicLinks, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/kanban/KanbanRow.unit.js
Normal file
27
NearBeach/tests/unit/kanban/KanbanRow.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanRow from "/src/js/components/kanban/KanbanRow.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('KanbanRow.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanRow, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/kanban/NewKanban.unit.js
Normal file
27
NearBeach/tests/unit/kanban/NewKanban.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import NewKanban from "/src/js/components/kanban/NewKanban.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe(' NewKanban.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(NewKanban, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/kanban/kanbanColumnDraggable.unit.js
Normal file
27
NearBeach/tests/unit/kanban/kanbanColumnDraggable.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import KanbanColumnDraggable from "/src/js/components/kanban/KanbanColumnDraggable.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require('axios');
|
||||
|
||||
describe('KanbanColumnDraggable.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(KanbanColumnDraggable, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
27
NearBeach/tests/unit/modules/ParentModules.unit.js
Normal file
27
NearBeach/tests/unit/modules/ParentModules.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ParentModules from "/src/js/components/modules/ParentModules.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(ParentModules, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AssignedSprints from "/src/js/components/modules/sub_modules/AssignedSprints.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' AssignedSprints.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AssignedSprints, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AssociatedObjects from "/src/js/components/modules/sub_modules/AssociatedObjects.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' AssociatedObjects.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AssociatedObjects, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/sub_modules/BugsModule.unit.js
Normal file
27
NearBeach/tests/unit/modules/sub_modules/BugsModule.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import BugsModule from "/src/js/components/modules/sub_modules/BugsModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' BugsModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(BugsModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ChildSprints from "/src/js/components/modules/sub_modules/ChildSprints.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' ChildSprints.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ChildSprints, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CustomersListModule from "/src/js/components/modules/sub_modules/CustomersListModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' CustomersListModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CustomersListModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import CustomersModule from "/src/js/components/modules/sub_modules/CustomersModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' CustomersModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(CustomersModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,32 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import DocumentsModule from "/src/js/components/modules/sub_modules/DocumentsModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('ChangeTaskModules.vue - rendering component.', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(DocumentsModule, {
|
||||
props: {
|
||||
overrideDestination:"",
|
||||
overrideLocationId:0,
|
||||
readOnly:false,
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
});
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import GroupsAndUsersModule from "/src/js/components/modules/sub_modules/GroupsAndUsersModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' GroupsAndUsersModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(GroupsAndUsersModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/sub_modules/ListNotes.unit.js
Normal file
27
NearBeach/tests/unit/modules/sub_modules/ListNotes.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ListNotes from "/src/js/components/modules/sub_modules/ListNotes.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' ListNotes.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ListNotes, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ListPublicLinks from "/src/js/components/modules/sub_modules/ListPublicLinks.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' ListPublicLinks.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ListPublicLinks, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/sub_modules/ListSprints.unit.js
Normal file
27
NearBeach/tests/unit/modules/sub_modules/ListSprints.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ListSprints from "/src/js/components/modules/sub_modules/ListSprints.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' ListSprints.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ListSprints, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ListTagsModule from "/src/js/components/modules/sub_modules/ListTagsModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' ListTagsModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ListTagsModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/sub_modules/MiscModule.unit.js
Normal file
27
NearBeach/tests/unit/modules/sub_modules/MiscModule.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import MiscModule from "/src/js/components/modules/sub_modules/MiscModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' MiscModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(MiscModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/sub_modules/NotesModule.unit.js
Normal file
27
NearBeach/tests/unit/modules/sub_modules/NotesModule.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import NotesModule from "/src/js/components/modules/sub_modules/NotesModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' NotesModules.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(NotesModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/sub_modules/ObjectLinks.unit.js
Normal file
27
NearBeach/tests/unit/modules/sub_modules/ObjectLinks.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ObjectLinks from "/src/js/components/modules/sub_modules/ObjectLinks.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' ObjectLinks.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ObjectLinks, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import RenderSprintCard from "/src/js/components/modules/sub_modules/RenderSprintCard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' RenderSprintCard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(RenderSprintCard, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import RequirementItemLinksModule from "/src/js/components/modules/sub_modules/RequirementItemLinksModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' RequirementItemLinksModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(RequirementItemLinksModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,30 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import RequirementItemsModule from "/src/js/components/modules/sub_modules/RequirementItemsModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('RequirementItemsModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(RequirementItemsModule, {
|
||||
props: {
|
||||
destination: "project",
|
||||
locationId: 1,
|
||||
},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import RequirementLinksModule from "/src/js/components/modules/sub_modules/RequirementLinksModule.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' RequirementLinksModule.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(RequirementLinksModule, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import SubObjectLinks from "/src/js/components/modules/sub_modules/SubObjectLinks.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe(' SubObjectLinks.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(SubObjectLinks, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/wizards/AddBugWizard.unit.js
Normal file
27
NearBeach/tests/unit/modules/wizards/AddBugWizard.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AddBugWizard from "/src/js/components/modules/wizards/AddBugWizard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AddBugWizard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AddBugWizard, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AddCustomerWizard from "/src/js/components/modules/wizards/AddCustomerWizard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AddCustomerWizard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AddCustomerWizard, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/wizards/AddFolderWizard.unit.js
Normal file
27
NearBeach/tests/unit/modules/wizards/AddFolderWizard.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AddFolderWizard from "/src/js/components/modules/wizards/AddFolderWizard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AddFolderWizard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AddFolderWizard, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/wizards/AddGroupWizard.unit.js
Normal file
27
NearBeach/tests/unit/modules/wizards/AddGroupWizard.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AddGroupWizard from "/src/js/components/modules/wizards/AddGroupWizard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AddGroupWizard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AddGroupWizard, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/wizards/AddLinkWizard.unit.js
Normal file
27
NearBeach/tests/unit/modules/wizards/AddLinkWizard.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AddLinkWizard from "/src/js/components/modules/wizards/AddLinkWizard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AddLinkWizard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AddLinkWizard, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/wizards/AddTagWizard.unit.js
Normal file
27
NearBeach/tests/unit/modules/wizards/AddTagWizard.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AddTagWizard from "/src/js/components/modules/wizards/AddTagWizard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AddTagWizard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AddTagWizard, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
27
NearBeach/tests/unit/modules/wizards/AddUserWizard.unit.js
Normal file
27
NearBeach/tests/unit/modules/wizards/AddUserWizard.unit.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import AddUserWizard from "/src/js/components/modules/wizards/AddUserWizard.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('AddUserWizard.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(AddUserWizard, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
// Vitest
|
||||
import { describe, expect, test } from "vitest";
|
||||
import {mount, VueWrapper} from "@vue/test-utils";
|
||||
|
||||
// Import vue component
|
||||
import ConfirmFileDelete from "/src/js/components/modules/wizards/ConfirmFileDelete.vue";
|
||||
|
||||
// VueX
|
||||
import { store } from "/src/js/vuex-store";
|
||||
|
||||
// Axios
|
||||
const axios = require("axios");
|
||||
|
||||
describe('ConfirmFileDelete.vue - rendering component', () => {
|
||||
//Using mount - insert data
|
||||
const wrapper = mount(ConfirmFileDelete, {
|
||||
props: {},
|
||||
global: {
|
||||
plugins: [store],
|
||||
mocks: {
|
||||
axios,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test('Empty test', () => {});
|
||||
})
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user