|
|
@ -438,15 +438,15 @@ test.describe.serial('Webhook', () => { |
|
|
|
|
|
|
|
|
|
|
|
// verify records
|
|
|
|
// verify records
|
|
|
|
for (let j = 0; j < rsp[i].data.rows.length; j++) { |
|
|
|
for (let j = 0; j < rsp[i].data.rows.length; j++) { |
|
|
|
expect(rsp[i].data.rows[j].Number).toBe(111 * (j + 1)); |
|
|
|
expect(+rsp[i].data.rows[j].Number).toBe(111 * (j + 1)); |
|
|
|
expect(rsp[i].data.previous_rows[j].Number).toBe(100 * (j + 1) - 111); |
|
|
|
expect(+rsp[i].data.previous_rows[j].Number).toBe(100 * (j + 1)); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (type === 'records.after.bulkDelete') { |
|
|
|
} else if (type === 'records.after.bulkDelete') { |
|
|
|
expect(rsp[i].data.rows.length).toBe(50); |
|
|
|
expect(rsp[i].data.rows.length).toBe(50); |
|
|
|
|
|
|
|
|
|
|
|
// verify records
|
|
|
|
// verify records
|
|
|
|
for (let j = 0; j < rsp[i].data.rows.length; j++) { |
|
|
|
for (let j = 0; j < rsp[i].data.rows.length; j++) { |
|
|
|
expect(rsp[i].data.rows[j].Number).toBe(111 * (j + 1)); |
|
|
|
expect(+rsp[i].data.rows[j].Number).toBe(111 * (j + 1)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|