Skip to content

Commit

Permalink
added valid xml schema test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiwycherley committed Nov 28, 2023
1 parent 3d13651 commit b4e131e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/processMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,9 @@ lab.experiment('processMessage', () => {
// Expect the processMessage function to reject due to validation failure
await Code.expect(processMessage({ bodyXml: invalidBodyXml })).to.reject()
})
lab.test('Valid bodyXml format test', async () => {
const validBodyXml = capAlert.bodyXml

await Code.expect(processMessage({ bodyXml: validBodyXml })).to.not.reject()
})
})

0 comments on commit b4e131e

Please sign in to comment.