Update tests
CodeQL checks / Detect whether code changed (push) Waiting to run Details
CodeQL checks / Analyze (actions) (push) Blocked by required conditions Details
CodeQL checks / Analyze (go) (push) Blocked by required conditions Details
CodeQL checks / Analyze (javascript) (push) Blocked by required conditions Details

This commit is contained in:
Matias Chomicki 2025-09-30 17:20:26 +02:00
parent 50f666bc7a
commit c1167faba0
No known key found for this signature in database
GPG Key ID: 76EB771268755755
1 changed files with 2 additions and 2 deletions

View File

@ -446,7 +446,7 @@ describe('LogListControls', () => {
await userEvent.click(screen.getByLabelText(DOWNLOAD_LOGS_LABEL_COPY)); await userEvent.click(screen.getByLabelText(DOWNLOAD_LOGS_LABEL_COPY));
await userEvent.click(await screen.findByText(label)); await userEvent.click(await screen.findByText(label));
expect(downloadLogs).toHaveBeenCalledTimes(1); expect(downloadLogs).toHaveBeenCalledTimes(1);
expect(downloadLogs).toHaveBeenCalledWith(format, [], undefined); expect(downloadLogs).toHaveBeenCalledWith(format, [], undefined, []);
}); });
test('Allows to download logs filtered logs', async () => { test('Allows to download logs filtered logs', async () => {
@ -463,7 +463,7 @@ describe('LogListControls', () => {
); );
await userEvent.click(screen.getByLabelText(DOWNLOAD_LOGS_LABEL_COPY)); await userEvent.click(screen.getByLabelText(DOWNLOAD_LOGS_LABEL_COPY));
await userEvent.click(await screen.findByText('txt')); await userEvent.click(await screen.findByText('txt'));
expect(downloadLogs).toHaveBeenCalledWith('text', filteredLogs, undefined); expect(downloadLogs).toHaveBeenCalledWith('text', filteredLogs, undefined, []);
}); });
test('Controls new lines', async () => { test('Controls new lines', async () => {