-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sergey Shelomentsev
committed
May 2, 2023
1 parent
66972fc
commit a48ad1d
Showing
2 changed files
with
43 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { IntegrationError } from './IntegrationError' | ||
|
||
describe('check integration error result', () => { | ||
it('check if error return valid body', async () => { | ||
const json = { | ||
vendor: 'Fingerprint Pro Azure Function', | ||
message: 'Download failed', | ||
path: 'fpjs/agent', | ||
} | ||
const message: IntegrationError = new IntegrationError(json.message, json.path) | ||
const body = message.toBody() | ||
expect(body).toBe(JSON.stringify(json)) | ||
}) | ||
}) | ||
it('check if error return valid body', async () => { | ||
const json = { | ||
vendor: 'Fingerprint Pro Azure Function', | ||
message: 'Download failed', | ||
path: 'fpjs/agent', | ||
} | ||
|
||
const message: IntegrationError = new IntegrationError(json.message, json.path) | ||
const body = message.toBody() | ||
|
||
expect(body).toBe(JSON.stringify(json)) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters