Skip to content

Commit

Permalink
test: fix tests in IE/Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 24, 2019
1 parent 32072e8 commit 8cb2069
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/unit/features/component/component-scoped-slot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ describe('Component scoped slot', () => {
// new in 2.6, unifying all slots as functions
it('non-scoped slots should also be available on $scopedSlots', () => {
const vm = new Vue({
template: `<foo>before <div slot="bar" slot-scope="{ msg }">{{ msg }}</div> after</foo>`,
template: `<foo>before <div slot="bar" slot-scope="scope">{{ scope.msg }}</div> after</foo>`,
components: {
foo: {
render(h) {
Expand Down
6 changes: 3 additions & 3 deletions test/unit/features/instance/properties.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ describe('Instance properties', () => {
// #6263
it('$attrs should not be undefined when no props passed in', () => {
const vm = new Vue({
template: `<foo/>`,
template: `<foo ref="foo" />`,
data: { foo: 'foo' },
components: {
foo: {
template: `<div>{{ this.foo }}</div>`
template: `<div>foo</div>`
}
}
}).$mount()
expect(vm.$attrs).toBeDefined()
expect(vm.$refs.foo.$attrs).toBeDefined()
})

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

0 comments on commit 8cb2069

Please sign in to comment.