Skip to content

Commit 7ac9cc7

Browse files
committed
add signals test
1 parent cc14e52 commit 7ac9cc7

File tree

1 file changed

+17
-0
lines changed
  • packages/browser/src/core/arguments-resolver/__tests__

1 file changed

+17
-0
lines changed

packages/browser/src/core/arguments-resolver/__tests__/index.test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,23 @@ describe(resolvePageArguments, () => {
365365
expect(cb).toEqual(fn)
366366
})
367367

368+
test('should accept (category, name = null, properties, options, callback)', () => {
369+
const fn = jest.fn()
370+
const [category, name, properties, options, cb] = resolvePageArguments(
371+
'category',
372+
null,
373+
bananaPhone,
374+
baseOptions,
375+
fn
376+
)
377+
378+
expect(category).toEqual('category')
379+
expect(name).toEqual('name')
380+
expect(properties).toEqual(bananaPhone)
381+
expect(options).toEqual(baseOptions)
382+
expect(cb).toEqual(fn)
383+
})
384+
368385
test('should accept (null, null, properties, options, callback)', () => {
369386
const fn = jest.fn()
370387
const [category, name, properties, options, cb] = resolvePageArguments(

0 commit comments

Comments
 (0)