Skip to content

Commit ebed5c5

Browse files
committed
Update dom-testing-library and fix failing tests
1 parent f25978e commit ebed5c5

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-testing-library",
3-
"version": "0.5.4",
3+
"version": "0.6.1",
44
"description": "Simple and complete Vue DOM testing utilities that encourage good testing practices.",
55
"main": "npm/index.js",
66
"scripts": {
@@ -28,7 +28,7 @@
2828
"license": "MIT",
2929
"dependencies": {
3030
"@vue/test-utils": "^1.0.0-beta.15",
31-
"dom-testing-library": "^1.10.0",
31+
"dom-testing-library": "^2.1.0",
3232
"vue": "^2.5.16",
3333
"vue-template-compiler": "^2.5.16"
3434
},
@@ -44,7 +44,7 @@
4444
"babel-preset-es2015": "^6.24.1",
4545
"coveralls": "^3.0.1",
4646
"eslint": "^4.19.1",
47-
"eslint-config-standard": "^11.0.0",
47+
"eslint-config-standard": "^12.0.0-alpha.0",
4848
"eslint-plugin-import": "^2.11.0",
4949
"eslint-plugin-node": "^6.0.1",
5050
"eslint-plugin-promise": "^3.7.0",

tests/__tests__/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test('login form submits', async () => {
88
Login, { props: { onSubmit: handleSubmit } }
99
)
1010

11-
const submitButtonNode = getByText('submit')
11+
const submitButtonNode = getByText('Submit')
1212

1313
// Act - this is waiting on an issue in @vue/test-utils to allow v-model to be updated by
1414
// changes to DOM elements

tests/__tests__/stopwatch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test('unmounts a component', async () => {
55
jest.spyOn(console, 'error').mockImplementation(() => {})
66

77
const { unmount, isUnmounted, getByText } = render(StopWatch)
8-
Simulate.click(getByText('start'))
8+
Simulate.click(getByText('Start'))
99

1010
await wait()
1111

@@ -19,7 +19,7 @@ test('unmounts a component', async () => {
1919
test('updates component state', async () => {
2020
const { getByTestId, getByText } = render(StopWatch)
2121

22-
const startButton = getByText('start')
22+
const startButton = getByText('Start')
2323
const elapsedTime = getByTestId('elapsed')
2424

2525
expect(elapsedTime.textContent).toBe('0ms')

0 commit comments

Comments
 (0)