Skip to content

Commit 3dd0c34

Browse files
committed
update
1 parent ae6f81e commit 3dd0c34

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
src/registerServiceWorker.js
2+
3+
tests/

tests/e2e/plugins/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ module.exports = (on, config) => {
1616
// }))
1717

1818
return Object.assign({}, config, {
19-
fixturesFolder: "tests/e2e/fixtures",
20-
integrationFolder: "tests/e2e/specs",
21-
screenshotsFolder: "tests/e2e/screenshots",
22-
videosFolder: "tests/e2e/videos",
23-
supportFile: "tests/e2e/support/index.js"
24-
});
25-
};
19+
fixturesFolder: 'tests/e2e/fixtures',
20+
integrationFolder: 'tests/e2e/specs',
21+
screenshotsFolder: 'tests/e2e/screenshots',
22+
videosFolder: 'tests/e2e/videos',
23+
supportFile: 'tests/e2e/support/index.js'
24+
})
25+
}

tests/e2e/specs/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// https://docs.cypress.io/api/introduction/api.html
22

3-
describe("My First Test", () => {
4-
it("Visits the app root url", () => {
5-
cy.visit("/");
6-
cy.contains("h1", "Welcome to Your Vue.js App");
7-
});
8-
});
3+
describe('My First Test', () => {
4+
it('Visits the app root url', () => {
5+
cy.visit('/')
6+
cy.contains('h1', 'Welcome to Your Vue.js App')
7+
})
8+
})

tests/e2e/support/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// ***********************************************************
1515

1616
// Import commands.js using ES2015 syntax:
17-
import "./commands";
17+
import './commands'
1818

1919
// Alternatively you can use CommonJS syntax:
2020
// require('./commands')

tests/unit/example.spec.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { shallowMount } from "@vue/test-utils";
2-
import HelloWorld from "@/components/HelloWorld.vue";
1+
import { shallowMount } from '@vue/test-utils'
2+
import HelloWorld from '@/components/HelloWorld.vue'
33

4-
describe("HelloWorld.vue", () => {
5-
it("renders props.msg when passed", () => {
6-
const msg = "new message";
4+
describe('HelloWorld.vue', () => {
5+
it('renders props.msg when passed', () => {
6+
const msg = 'new message'
77
const wrapper = shallowMount(HelloWorld, {
88
propsData: { msg }
9-
});
10-
expect(wrapper.text()).toMatch(msg);
11-
});
12-
});
9+
})
10+
expect(wrapper.text()).toMatch(msg)
11+
})
12+
})

0 commit comments

Comments
 (0)