Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
asteriscos committed Mar 8, 2024
1 parent 2a4deb8 commit 1aae3ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/main/server/routes/wazuh-reporting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ describe('[endpoint] PUT /utils/configuration', () => {
// If any of the parameters is changed this variable should be updated with the new md5
it.each`
footer | header | responseStatusCode | expectedMD5 | tab
${null} | ${null} | ${200} | ${'301281824427c6ea8546fd14ee1aa5d8'} | ${'pm'}
${null} | ${null} | ${200} | ${'5b5211a0514e36cc43d18d7d54cc4c35'} | ${'pm'}
${'Custom\nFooter'} | ${'[email protected]\nFake Avenue 123'} | ${200} | ${'c2adfd7ab05ae3ed1548abd3c8be8f7e'} | ${'general'}
${''} | ${''} | ${200} | ${'06726f42a4129dd47262ea7228939006'} | ${'fim'}
${''} | ${''} | ${200} | ${'1b121407ad7748bbcc2f9973bafb2a85'} | ${'fim'}
${'Custom Footer'} | ${null} | ${200} | ${'1ea187181c307a4be5e90a38f614c42d'} | ${'aws'}
${null} | ${'Custom Header'} | ${200} | ${'f2fc0804eb52ebca21291eb5a40dec35'} | ${'gcp'}
${null} | ${'Custom Header'} | ${200} | ${'01fa7a09aba3aa99d4d56c915d733646'} | ${'gcp'}
`(
`Set custom report header and footer - Verify PDF output`,
async ({ footer, header, responseStatusCode, expectedMD5, tab }) => {
Expand Down

0 comments on commit 1aae3ca

Please sign in to comment.