Skip to content

Commit 38180a5

Browse files
test: fix failing test
1 parent b740217 commit 38180a5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/config.spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ describe('config', () => {
109109
})
110110

111111
describe('provide', () => {
112-
config.global.provide = {
113-
theme: 'dark'
114-
}
115112
const Comp = {
116113
setup() {
117114
const theme = inject('theme')
@@ -120,11 +117,17 @@ describe('config', () => {
120117
}
121118

122119
it('sets a provide everywhere', () => {
120+
config.global.provide = {
121+
theme: 'dark'
122+
}
123123
const wrapper = mount(Comp)
124124
expect(wrapper.html()).toContain('dark')
125125
})
126126

127127
it('overrides with a local provide', () => {
128+
config.global.provide = {
129+
theme: 'dark'
130+
}
128131
const wrapper = mount(Comp, {
129132
global: {
130133
provide: {

0 commit comments

Comments
 (0)