invocationCallOrder of the first `tx.update(table)` call.
(table: unknown)
| 72 | |
| 73 | /** invocationCallOrder of the first `tx.update(table)` call. */ |
| 74 | function updateOrderForTable(table: unknown): number { |
| 75 | const { calls, invocationCallOrder } = dbChainMockFns.update.mock |
| 76 | for (let i = 0; i < calls.length; i++) { |
| 77 | if (calls[i][0] === table) return invocationCallOrder[i] |
| 78 | } |
| 79 | return -1 |
| 80 | } |
| 81 | |
| 82 | describe('table import lock ordering', () => { |
| 83 | beforeEach(() => { |