added codebase, project rules and sec audit

This commit is contained in:
2026-11-08 19:03:59 -05:00
parent 4816038d49
commit bcd424f91a
1798 changed files with 801283 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ChangeTaskList from "/src/js/components/request_for_change/modules/ChangeTaskList.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(ChangeTaskList, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})

View File

@@ -0,0 +1,28 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import ConfirmChangweTaskClosure from "/src/js/components/request_for_change/modules/ConfirmChangeTaskClosure.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(ConfirmChangweTaskClosure, {
props: {},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})

View File

@@ -0,0 +1,31 @@
// Vitest
import { describe, expect, test } from "vitest";
import {mount, VueWrapper} from "@vue/test-utils";
// Import vue component
import RfcApprovalButtons from "/src/js/components/request_for_change/modules/RfcApprovalButtons.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(RfcApprovalButtons, {
props: {
rfcResults: [{"model":"NearBeach.requestforchange","pk":1,"fields":{"rfc_title":"RFC - Admin","rfc_summary":"<p>Request for Change - admin</p>","rfc_type":2,"rfc_implementation_start_date":"2023-02-14T22:00:00Z","rfc_implementation_end_date":"2023-03-01T05:00:00Z","rfc_implementation_release_date":"2023-03-01T06:00:00Z","rfc_version_number":"0.30.0","rfc_status":2,"rfc_lead":1,"rfc_priority":2,"rfc_risk":3,"rfc_impact":2,"rfc_risk_and_impact_analysis":"<p>Risk Association</p>","rfc_implementation_plan":"<p>Implementation Plan</p>","rfc_backout_plan":"<p>Backout plan</p>","rfc_test_plan":"<p>Test Plan</p>","date_created":"2023-02-15T09:15:05.013Z","date_modified":"2023-11-27T09:34:01.355Z","change_user":1,"creation_user":1,"is_deleted":false}}],
groupLeaderCount: 2,
},
global: {
plugins: [store],
mocks: {
axios,
}
},
});
test('Empty test', () => {
});
})