chore(): expect either of errors

This commit is contained in:
tiagosiebler
2023-05-18 13:45:31 +01:00
parent 47be2b4af4
commit a45ca3308e

View File

@@ -185,8 +185,8 @@ describe('Private Unified Margin REST API POST Endpoints', () => {
transfer_id: 'testtransfer', transfer_id: 'testtransfer',
}), }),
).toMatchObject({ ).toMatchObject({
ret_code: API_ERROR_CODE.INVALID_API_KEY_OR_PERMISSIONS, // seems to fluctuate between these two errors
ret_msg: 'invalid api_key', ret_code: /^10003|10001$/,
}); });
}); });
}); });