Skip to content

Commit 8cb2069

Browse files
committed
test: fix tests in IE/Edge
1 parent 32072e8 commit 8cb2069

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/unit/features/component/component-scoped-slot.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ describe('Component scoped slot', () => {
458458
// new in 2.6, unifying all slots as functions
459459
it('non-scoped slots should also be available on $scopedSlots', () => {
460460
const vm = new Vue({
461-
template: `<foo>before <div slot="bar" slot-scope="{ msg }">{{ msg }}</div> after</foo>`,
461+
template: `<foo>before <div slot="bar" slot-scope="scope">{{ scope.msg }}</div> after</foo>`,
462462
components: {
463463
foo: {
464464
render(h) {

test/unit/features/instance/properties.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ describe('Instance properties', () => {
149149
// #6263
150150
it('$attrs should not be undefined when no props passed in', () => {
151151
const vm = new Vue({
152-
template: `<foo/>`,
152+
template: `<foo ref="foo" />`,
153153
data: { foo: 'foo' },
154154
components: {
155155
foo: {
156-
template: `<div>{{ this.foo }}</div>`
156+
template: `<div>foo</div>`
157157
}
158158
}
159159
}).$mount()
160-
expect(vm.$attrs).toBeDefined()
160+
expect(vm.$refs.foo.$attrs).toBeDefined()
161161
})
162162

163163
it('warn mutating $attrs', () => {

0 commit comments

Comments
 (0)