Skip to content

Commit ae36fa4

Browse files
committed
adding test files for ResultTables
1 parent 4157ceb commit ae36fa4

File tree

7 files changed

+175
-0
lines changed

7 files changed

+175
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, it } from "vitest";
2+
import { createVuetify } from "vuetify";
3+
4+
import { shallowMount } from "@vue/test-utils";
5+
import BenchmarksTable from "../BenchmarksTable.vue";
6+
import { createPinia, setActivePinia } from "pinia";
7+
8+
const vuetify = createVuetify();
9+
10+
describe("BenchmarksTable.vue", function () {
11+
let wrapper;
12+
13+
beforeEach(() => {
14+
setActivePinia(createPinia());
15+
wrapper = shallowMount(BenchmarksTable, {
16+
global: {
17+
plugins: [vuetify],
18+
},
19+
});
20+
});
21+
22+
it("can be instantiated", () => {
23+
expect(wrapper.vm.$options.name).toMatch("BenchmarksTable");
24+
});
25+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, it } from "vitest";
2+
import { createVuetify } from "vuetify";
3+
4+
import { shallowMount } from "@vue/test-utils";
5+
import CollectionsTable from "../CollectionsTable.vue";
6+
import { createPinia, setActivePinia } from "pinia";
7+
8+
const vuetify = createVuetify();
9+
10+
describe("CollectionsTable.vue", function () {
11+
let wrapper;
12+
13+
beforeEach(() => {
14+
setActivePinia(createPinia());
15+
wrapper = shallowMount(CollectionsTable, {
16+
global: {
17+
plugins: [vuetify],
18+
},
19+
});
20+
});
21+
22+
it("can be instantiated", () => {
23+
expect(wrapper.vm.$options.name).toMatch("CollectionsTable");
24+
});
25+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, it } from "vitest";
2+
import { createVuetify } from "vuetify";
3+
4+
import { shallowMount } from "@vue/test-utils";
5+
import DatabaseTable from "../DatabaseTable.vue";
6+
import { createPinia, setActivePinia } from "pinia";
7+
8+
const vuetify = createVuetify();
9+
10+
describe("DatabaseTable.vue", function () {
11+
let wrapper;
12+
13+
beforeEach(() => {
14+
setActivePinia(createPinia());
15+
wrapper = shallowMount(DatabaseTable, {
16+
global: {
17+
plugins: [vuetify],
18+
},
19+
});
20+
});
21+
22+
it("can be instantiated", () => {
23+
expect(wrapper.vm.$options.name).toMatch("DatabaseTable");
24+
});
25+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, it } from "vitest";
2+
import { createVuetify } from "vuetify";
3+
4+
import { shallowMount } from "@vue/test-utils";
5+
import MetricsTable from "../MetricsTable.vue";
6+
import { createPinia, setActivePinia } from "pinia";
7+
8+
const vuetify = createVuetify();
9+
10+
describe("MetricsTable.vue", function () {
11+
let wrapper;
12+
13+
beforeEach(() => {
14+
setActivePinia(createPinia());
15+
wrapper = shallowMount(MetricsTable, {
16+
global: {
17+
plugins: [vuetify],
18+
},
19+
});
20+
});
21+
22+
it("can be instantiated", () => {
23+
expect(wrapper.vm.$options.name).toMatch("MetricsTable");
24+
});
25+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, it } from "vitest";
2+
import { createVuetify } from "vuetify";
3+
4+
import { shallowMount } from "@vue/test-utils";
5+
import PoliciesTable from "../PoliciesTable.vue";
6+
import { createPinia, setActivePinia } from "pinia";
7+
8+
const vuetify = createVuetify();
9+
10+
describe("PoliciesTable.vue", function () {
11+
let wrapper;
12+
13+
beforeEach(() => {
14+
setActivePinia(createPinia());
15+
wrapper = shallowMount(PoliciesTable, {
16+
global: {
17+
plugins: [vuetify],
18+
},
19+
});
20+
});
21+
22+
it("can be instantiated", () => {
23+
expect(wrapper.vm.$options.name).toMatch("PoliciesTable");
24+
});
25+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, it } from "vitest";
2+
import { createVuetify } from "vuetify";
3+
4+
import { shallowMount } from "@vue/test-utils";
5+
import PrinciplesTable from "../PrinciplesTable.vue";
6+
import { createPinia, setActivePinia } from "pinia";
7+
8+
const vuetify = createVuetify();
9+
10+
describe("PrinciplesTable.vue", function () {
11+
let wrapper;
12+
13+
beforeEach(() => {
14+
setActivePinia(createPinia());
15+
wrapper = shallowMount(PrinciplesTable, {
16+
global: {
17+
plugins: [vuetify],
18+
},
19+
});
20+
});
21+
22+
it("can be instantiated", () => {
23+
expect(wrapper.vm.$options.name).toMatch("PrinciplesTable");
24+
});
25+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { describe, expect, it } from "vitest";
2+
import { createVuetify } from "vuetify";
3+
4+
import { shallowMount } from "@vue/test-utils";
5+
import StandardsTable from "../StandardsTable.vue";
6+
import { createPinia, setActivePinia } from "pinia";
7+
8+
const vuetify = createVuetify();
9+
10+
describe("StandardsTable.vue", function () {
11+
let wrapper;
12+
13+
beforeEach(() => {
14+
setActivePinia(createPinia());
15+
wrapper = shallowMount(StandardsTable, {
16+
global: {
17+
plugins: [vuetify],
18+
},
19+
});
20+
});
21+
22+
it("can be instantiated", () => {
23+
expect(wrapper.vm.$options.name).toMatch("StandardsTable");
24+
});
25+
});

0 commit comments

Comments
 (0)