Skip to content

Commit eeedc8e

Browse files
committed
add a test case to duplicate entry removal
1 parent f577824 commit eeedc8e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

modules/housekeep.test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ describe('HousekeepModule', () => {
179179
scope: 'en',
180180
date: '2024-01-02T00:00:00.000Z',
181181
}),
182+
makeEntry({
183+
head: 'bao',
184+
gloss: 'white',
185+
body: '___ is white',
186+
user: 'alice',
187+
scope: 'en',
188+
date: '2024-01-02T00:00:00.000Z',
189+
}),
182190
];
183191
housekeep.up(store, makeConfig());
184192
expect(store.db.entries).toEqual([
@@ -198,6 +206,15 @@ describe('HousekeepModule', () => {
198206
scope: 'en',
199207
date: '2024-01-02T00:00:00.000Z',
200208
}),
209+
makeEntry({
210+
head: 'bao',
211+
gloss: 'white',
212+
body: '▯ is white',
213+
type: 'predicate',
214+
user: 'alice',
215+
scope: 'en',
216+
date: '2024-01-02T00:00:00.000Z',
217+
}),
201218
]);
202219
});
203220
});

0 commit comments

Comments
 (0)