From ea346cdca2c128cfd1d78404e7342061d499386c Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 25 Aug 2023 12:56:00 +0200 Subject: [PATCH] refs #5673 test(CrudModel): skip remove test --- .../components/common/CrudModel.spec.js | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/test/vitest/__tests__/components/common/CrudModel.spec.js b/test/vitest/__tests__/components/common/CrudModel.spec.js index a26b47e21..b425351af 100644 --- a/test/vitest/__tests__/components/common/CrudModel.spec.js +++ b/test/vitest/__tests__/components/common/CrudModel.spec.js @@ -96,26 +96,26 @@ describe.only('CrudModel', () => { }); // TODO: remove test - // describe('remove()', () => { - // it('should remove', async () => { - // vi.spyOn(vm.quasar, 'dialog'); + describe.skip('remove()', () => { + it('should remove', async () => { + vi.spyOn(vm.quasar, 'dialog'); - // vm.originalData = [ - // { id: 1, name: 'Tony Starks', $index: 1 }, - // { id: 2, name: 'Jessica Jones', $index: 2 }, - // { id: 3, name: 'Bruce Wayne', $index: 3 }, - // ]; - // vm.state.set('crudModel', [ - // { id: 1, name: 'New name one', $index: 1 }, - // { id: 2, name: 'New name two', $index: 2 }, - // { id: 3, name: 'Bruce Wayne', $index: 3 }, - // ]); + vm.originalData = [ + { id: 1, name: 'Tony Starks', $index: 1 }, + { id: 2, name: 'Jessica Jones', $index: 2 }, + { id: 3, name: 'Bruce Wayne', $index: 3 }, + ]; + vm.state.set('crudModel', [ + { id: 1, name: 'New name one', $index: 1 }, + { id: 2, name: 'New name two', $index: 2 }, + { id: 3, name: 'Bruce Wayne', $index: 3 }, + ]); - // vm.remove([{ id: 1 }]); + vm.remove([{ id: 1 }]); - // expect(vm.quasar.dialog).toHaveBeenCalled(); - // }); - // }); + expect(vm.quasar.dialog).toHaveBeenCalled(); + }); + }); describe('getDifferences()', () => { it('should return the differences between two objects', async () => {