Add unit test to ensure credentials are sent for SVGs
Signed-off-by: Gowind <petrovgovind@gmail.com>
This commit is contained in:
@@ -154,6 +154,9 @@ describe('addBaseUrl', () => {
|
||||
await waitFor(() => {
|
||||
const actualSrc = root.getElementById('x')?.getAttribute('src');
|
||||
expect(expectedSrc).toEqual(actualSrc);
|
||||
expect(global.fetch).toHaveBeenCalledWith(`${API_ORIGIN_URL}/test.svg`, {
|
||||
credentials: 'include',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user