mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-10-04 12:14:19 +02:00
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
|
/*
|
||
|
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
||
|
*
|
||
|
* This is free software, licensed under the GNU General Public License v3.
|
||
|
* See /LICENSE for more information.
|
||
|
*/
|
||
|
|
||
|
import mockAxios from 'jest-mock-axios';
|
||
|
|
||
|
export function mockJSONError(data) {
|
||
|
mockAxios.mockError({ response: { data, headers: { "content-type": "application/json" } } });
|
||
|
}
|