Skip to content

Commit

Permalink
Merge pull request vuejs#2165 from Gerhut/fix
Browse files Browse the repository at this point in the history
Fix test about assigning to frozen object in chrome.
  • Loading branch information
yyx990803 committed Jan 18, 2016
2 parents f57ea7c + dd4a27e commit 3816366
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/unit/specs/misc_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,13 @@ describe('Misc', function () {
})
expect(vm.$el.textContent).toBe('hi frozen')
vm.msg = 'ho'
vm.frozen.msg = 'changed'
try {
vm.frozen.msg = 'changed'
} catch (error) {
if (!(error instanceof TypeError)) {
throw error
}
}
Vue.nextTick(function () {
expect(vm.$el.textContent).toBe('ho frozen')
done()
Expand Down

0 comments on commit 3816366

Please sign in to comment.