Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e130dc

Browse files
bump node deps and dev deps; refactor unit tests
1 parent dfcf7e7 commit 1e130dc

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

‎GhostUI/ClientApp/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"test:unit": "vue-cli-service test:unit"
1212
},
1313
"dependencies": {
14-
"@fortawesome/fontawesome-svg-core": "^1.2.34",
15-
"@fortawesome/free-brands-svg-icons": "^5.15.2",
16-
"@fortawesome/free-solid-svg-icons": "^5.15.2",
14+
"@fortawesome/fontawesome-svg-core": "^1.2.35",
15+
"@fortawesome/free-brands-svg-icons": "^5.15.3",
16+
"@fortawesome/free-solid-svg-icons": "^5.15.3",
1717
"@fortawesome/vue-fontawesome": "^2.0.2",
1818
"@microsoft/signalr": "^5.0.4",
1919
"axios": "^0.21.1",
@@ -30,16 +30,16 @@
3030
},
3131
"devDependencies": {
3232
"@testing-library/jest-dom": "^5.11.9",
33-
"@types/jest": "^26.0.20",
34-
"@typescript-eslint/eslint-plugin": "^4.17.0",
35-
"@typescript-eslint/parser": "^4.17.0",
36-
"@vue/cli-plugin-babel": "^4.5.11",
37-
"@vue/cli-plugin-e2e-nightwatch": "^4.5.11",
38-
"@vue/cli-plugin-eslint": "^4.5.11",
39-
"@vue/cli-plugin-pwa": "^4.5.11",
40-
"@vue/cli-plugin-typescript": "^4.5.11",
41-
"@vue/cli-plugin-unit-jest": "^4.5.11",
42-
"@vue/cli-service": "^4.5.11",
33+
"@types/jest": "^26.0.21",
34+
"@typescript-eslint/eslint-plugin": "^4.18.0",
35+
"@typescript-eslint/parser": "^4.18.0",
36+
"@vue/cli-plugin-babel": "^4.5.12",
37+
"@vue/cli-plugin-e2e-nightwatch": "^4.5.12",
38+
"@vue/cli-plugin-eslint": "^4.5.12",
39+
"@vue/cli-plugin-pwa": "^4.5.12",
40+
"@vue/cli-plugin-typescript": "^4.5.12",
41+
"@vue/cli-plugin-unit-jest": "^4.5.12",
42+
"@vue/cli-service": "^4.5.12",
4343
"@vue/eslint-config-prettier": "^6.0.0",
4444
"@vue/eslint-config-typescript": "^7.0.0",
4545
"@vue/test-utils": "1.1.3",
@@ -49,7 +49,7 @@
4949
"node-sass": "^5.0.0",
5050
"prettier": "^2.2.1",
5151
"sass-loader": "^10.1.1",
52-
"ts-jest": "^26.5.3",
52+
"ts-jest": "^26.5.4",
5353
"typescript": "^4.2.3",
5454
"vue-svg-loader": "^0.16.0",
5555
"vue-template-compiler": "^2.6.12",

‎GhostUI/ClientApp/tests/unit/Spinner.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import '@testing-library/jest-dom';
12
import { shallowMount, ThisTypedShallowMountOptions } from '@vue/test-utils';
23
import Spinner from '@/components/Spinner.vue';
3-
import '@testing-library/jest-dom';
44

55
/**
66
* Unit Tests For Component: Spinner.vue
@@ -19,7 +19,7 @@ describe("Spinner.vue", () => {
1919
it("should mount and render properly", async () => {
2020
const wrapper = shallowMountSpinner();
2121
expect(wrapper).toBeTruthy();
22-
expect(wrapper.find(spinnerParentElId).exists()).toBeTruthy();
22+
expect(wrapper.find(spinnerParentElId).exists()).toBe(true);
2323
});
2424

2525
it("v-show directive evaluates false AND element is not visible when 'isLoading' prop = false", async () => {

‎GhostUI/ClientApp/tests/unit/VCheckbox.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("VCheckbox.render.tsx", () => {
1818
it("should mount and render properly", async () => {
1919
const wrapper = mountVCheckbox();
2020
expect(wrapper).toBeTruthy();
21-
expect(wrapper.find(inputElQuery).exists()).toBeTruthy();
21+
expect(wrapper.find(inputElQuery).exists()).toBe(true);
2222
});
2323

2424
it("'id', 'disabled', 'readonly', and 'name' attributes are rendered on input element when those props are explicitly defined", async () => {
@@ -34,7 +34,7 @@ describe("VCheckbox.render.tsx", () => {
3434

3535
Object.keys(propsData).forEach((key) => {
3636
const attr = key.toLowerCase();
37-
expect(inputEl.hasAttribute(attr)).toBeTruthy();
37+
expect(inputEl.hasAttribute(attr)).toBe(true);
3838
});
3939
});
4040

@@ -51,8 +51,7 @@ describe("VCheckbox.render.tsx", () => {
5151
inputEl.checked = true;
5252
inputEl.value = inputEl.checked.toString();
5353

54-
inputNode.trigger("change");
55-
54+
await inputNode.trigger("change");
5655
expect(wrapper.emitted().checked).toBeTruthy();
5756
});
5857

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /