Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit df48540

Browse files
committed
Scope not merging
1 parent b482ae9 commit df48540

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

test/index.test.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,21 @@ test('resource in scope', t => {
359359
})
360360
)
361361
})
362+
363+
test('scopes not merging', t => {
364+
t.deepEqual(
365+
createRest(r => {
366+
r.scope('foo', r => {
367+
r.get('bar', get)
368+
})
369+
r.scope('foo', r => {
370+
r.post('baz', post)
371+
})
372+
}),
373+
make([], [], {}, {
374+
foo: make([], [], {}, {
375+
baz: make([], [], { POST: [post] })
376+
})
377+
})
378+
)
379+
})

0 commit comments

Comments
 (0)