Skip to content

Commit 34a5f25

Browse files
authored
Update create.spec.js
Revert back the default id on empty dataset to 0
1 parent 8c4266b commit 34a5f25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resolver/Mutation/create.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import create from './create';
22

3-
test('returns a new object with id 1 on empty datastore', () => {
4-
expect(create()(null, {})).toEqual({ id: 1 });
3+
test('returns a new object with id 0 on empty datastore', () => {
4+
expect(create()(null, {})).toEqual({ id: 0 });
55
});
66

77
test('returns a new object with incremental id', () => {

0 commit comments

Comments
 (0)