refs #5673 test(CrudModel): skip remove test

This commit is contained in:
Alex Moreno 2023-08-25 12:56:00 +02:00
parent 367141a80d
commit ea346cdca2
1 changed files with 17 additions and 17 deletions

View File

@ -96,26 +96,26 @@ describe.only('CrudModel', () => {
}); });
// TODO: remove test // TODO: remove test
// describe('remove()', () => { describe.skip('remove()', () => {
// it('should remove', async () => { it('should remove', async () => {
// vi.spyOn(vm.quasar, 'dialog'); vi.spyOn(vm.quasar, 'dialog');
// vm.originalData = [ vm.originalData = [
// { id: 1, name: 'Tony Starks', $index: 1 }, { id: 1, name: 'Tony Starks', $index: 1 },
// { id: 2, name: 'Jessica Jones', $index: 2 }, { id: 2, name: 'Jessica Jones', $index: 2 },
// { id: 3, name: 'Bruce Wayne', $index: 3 }, { id: 3, name: 'Bruce Wayne', $index: 3 },
// ]; ];
// vm.state.set('crudModel', [ vm.state.set('crudModel', [
// { id: 1, name: 'New name one', $index: 1 }, { id: 1, name: 'New name one', $index: 1 },
// { id: 2, name: 'New name two', $index: 2 }, { id: 2, name: 'New name two', $index: 2 },
// { id: 3, name: 'Bruce Wayne', $index: 3 }, { 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()', () => { describe('getDifferences()', () => {
it('should return the differences between two objects', async () => { it('should return the differences between two objects', async () => {