Commit 8b25b2d
committed
test(node): Cover mongoose callback signature against real v6
The instrumentation supports the callback form (mongoose 5/6) by forwarding
the original `arguments` and swapping the callback slot by position. Exercise
`save(callback)` end-to-end against real mongoose 6 and assert the callback
receives the saved document, so the positional handling is covered (the unit
test's fake finds the callback by type, not position).1 parent 3b32be8 commit 8b25b2d
1 file changed
Lines changed: 14 additions & 0 deletions
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
32 | 46 | | |
33 | 47 | | |
34 | 48 | | |
| |||
0 commit comments