We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fcabd commit 31854f7Copy full SHA for 31854f7
packages/browser/src/core/arguments-resolver/__tests__/index.test.ts
@@ -235,6 +235,30 @@ describe(resolvePageArguments, () => {
235
expect(cb).toEqual(undefined)
236
})
237
238
+ it('should accept ("name")', () => {
239
+ const [category, name, properties, options, cb] =
240
+ resolvePageArguments('name')
241
+
242
+ expect(name).toEqual('name')
243
+ expect(category).toEqual(null)
244
+ expect(properties).toEqual({})
245
+ expect(options).toEqual({})
246
+ expect(cb).toEqual(undefined)
247
+ })
248
249
+ it('should accept ("", "name")', () => {
250
+ const [category, name, properties, options, cb] = resolvePageArguments(
251
+ '',
252
+ 'name'
253
+ )
254
255
256
+ expect(category).toEqual('')
257
258
259
260
261
262
it('should accept (category, name, properties, options, cb)', () => {
263
const fn = jest.fn()
264
const [category, name, properties, options, cb] = resolvePageArguments(
0 commit comments