Skip to content

Commit

Permalink
remove problematic test cases (mutating in render fn)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 3, 2017
1 parent 35aa5f0 commit bbec076
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/unit/features/filter/filter.spec.js
Expand Up @@ -113,24 +113,6 @@ describe('Filters', () => {
expect(vm.$el.textContent).toBe(String(8))
})

it('handle division with variable++', () => {
const vm = new Vue({
data: { a: 7 },
template: `<div>{{ a++ / 2 | double }}</div>`,
filters: { double: v => v * 2 }
}).$mount()
expect(vm.$el.textContent).toBe(String(7))
})

it('handle division with variable--', () => {
const vm = new Vue({
data: { a: 7 },
template: `<div>{{ a-- / 2 | double }}</div>`,
filters: { double: v => v * 2 }
}).$mount()
expect(vm.$el.textContent).toBe(String(7))
})

it('handle division with variable_', () => {
const vm = new Vue({
data: { a_: 8 },
Expand Down

0 comments on commit bbec076

Please sign in to comment.