Skip to content

Commit f77908d

Browse files
committed
Fix failing stubs tests
1 parent 34abcc2 commit f77908d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/__tests__/stubs.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ import {render} from '@testing-library/vue'
22
import '@testing-library/jest-dom'
33
import Stubs from './components/Stubs'
44

5-
test('Form contains search button', () => {
6-
const DirectiveMock = {
7-
template: '<p>fake template</p>',
5+
test('Stubs out a component', () => {
6+
const CustomStub = {
7+
template: '<p>Search now</p>',
88
}
99

1010
const {getByText} = render(Stubs, {
1111
global: {
1212
stubs: {
13-
directive: DirectiveMock,
13+
// "Directive" is the stubbed out component
14+
Directive: CustomStub,
1415
},
1516
},
1617
})

0 commit comments

Comments
 (0)