Skip to content

Commit 938db6c

Browse files
committed
test(sync-actions): add test for searchKeywords
1 parent ce1ccc1 commit 938db6c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/sync-actions/test/product-sync-base.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,18 @@ describe('Actions', () => {
300300
expect(actions).toEqual([])
301301
})
302302

303+
test('shouldnt generate any searchKeywords actions', () => {
304+
const before = {
305+
searchKeywords: {},
306+
}
307+
308+
const now = {}
309+
310+
const actions = productsSync.buildActions(now, before)
311+
312+
expect(actions).toEqual([])
313+
})
314+
303315
test('should build base actions for long diff text', () => {
304316
const longText = `
305317
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

0 commit comments

Comments
 (0)