Skip to content

Commit aaeedb0

Browse files
committed
Remove isDirty stuff
1 parent dbc0aaf commit aaeedb0

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

test/integration/VuexORMApollo.spec.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -375,35 +375,6 @@ mutation SignupUser($user: UserInput!, $captchaToken: String!) {
375375
});
376376
});
377377

378-
describe('$isDirty', () => {
379-
it('is false for newly created records', async () => {
380-
let user = await store.dispatch('entities/users/insert', { data: { name: 'Snoopy' }} );
381-
expect(user.$isDirty).toBeFalsy();
382-
383-
user = store.getters['entities/users/find'](user.id);
384-
expect(user.$isDirty).toBeFalsy();
385-
});
386-
387-
it('is true for changed but unsaved records', async () => {
388-
let user = await store.dispatch('entities/users/insert', { data: { name: 'Snoopy' }} );
389-
user.name = 'Snoop Dog';
390-
expect(user.$isDirty).toBeTruthy();
391-
392-
user = store.getters['entities/users/find'](user.id);
393-
expect(user.$isDirty).toBeFalsy();
394-
});
395-
396-
it('is false for changed and saved records', async () => {
397-
let user = await store.dispatch('entities/users/insert', { data: { name: 'Snoopy' }} );
398-
user.name = 'Snoop Dog';
399-
store.dispatch('entities/users/update', { where: user.id, data: user });
400-
expect(user.$isDirty).toBeFalsy();
401-
402-
user = store.getters['entities/users/find'](user.id);
403-
expect(user.$isDirty).toBeFalsy();
404-
});
405-
});
406-
407378
describe('$isPersisted', () => {
408379
it('is false for newly created records', async () => {
409380
let user = await store.dispatch('entities/users/insert', { data: { name: 'Snoopy' }} );

0 commit comments

Comments
 (0)