Skip to content

Commit 09424ea

Browse files
author
tvillaren
committed
Updating test to cover 100% of the code
1 parent a4801c1 commit 09424ea

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/unit/test-all.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ import Role from '../dev/common/models/Role';
66
import {
77
expect
88
} from 'chai';
9-
import {
10-
Query
11-
} from '@vuex-orm/core';
12-
import {
13-
debug
14-
} from 'util';
159

1610
describe('Vuex ORM $isDirty/$isNew plugin default installation', function () {
1711
it('should have both flag set to false when creating new', function () {
@@ -158,7 +152,8 @@ describe('Vuex ORM $isDirty/$isNew plugin default installation', function () {
158152
User.insert({
159153
data: [user, user2]
160154
});
161-
Role.insert({
155+
// Using insertOrUpdate for test coverage
156+
Role.insertOrUpdate({
162157
data: role
163158
});
164159

0 commit comments

Comments
 (0)