Skip to content

Commit ae1857b

Browse files
authored
Update table-provider.spec.js
1 parent ed8bd01 commit ae1857b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/table/table-provider.spec.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,25 @@ describe('table > provider functions', () => {
457457
await waitNT(wrapper.vm)
458458
await waitNT(wrapper.vm)
459459

460+
expect(wrapper.vm.filter).toEqual({ a: '456' })
461+
expect($table.vm.filter).toEqual({ a: '456' })
462+
expect($table.vm.localFilter).toEqual({ a: '456' })
463+
460464
expect(lastProviderContext.filter).toEqual({
461465
a: '123'
462466
})
463467

464468
// Change the filter criteria child property, but not the object reference
465469
// `setData` recursively traverses the object and only changes the leaf values
466470
wrapper.setData({ filter: { a: '456' } })
471+
472+
await waitNT(wrapper.vm)
473+
await waitNT(wrapper.vm)
474+
await waitNT(wrapper.vm)
475+
467476
expect(wrapper.vm.filter).toEqual({ a: '456' })
477+
expect($table.vm.filter).toEqual({ a: '456' })
478+
expect($table.vm.localFilter).toEqual({ a: '456' })
468479

469480
await waitNT(wrapper.vm)
470481
await waitNT(wrapper.vm)

0 commit comments

Comments
 (0)