diff --git a/tests/specs/import.spec.ts b/tests/specs/import.spec.ts index ac6c615..2c31e08 100644 --- a/tests/specs/import.spec.ts +++ b/tests/specs/import.spec.ts @@ -15,13 +15,14 @@ describe('Import', (): void => { }); test('api.import.json', async (): Promise => { - const json: I18nJson = { en: { headers: { person: 'Active person' } } }; + const json: I18nJson = { en: { headers: { person: 'Active person' }, 99: { luft: 'baloons' } } }; const request: ImportJsonRequest = { project, json, fileOptions: { name: 'en.json' } }; const spy: MockInstance = vi.spyOn(globalThis, 'fetch'); await api.import.json(request); expect(spy).toHaveBeenCalledWith('https://api.localazy.com/projects/_a0000000000000000001/import', { - body: '{"files":[{"name":"en.json","content":{"type":"json","en":{"headers":{"person":"Active person"}}}}]}', + // eslint-disable-next-line max-len + body: '{"files":[{"name":"en.json","content":{"type":"json","en":{"99":{"luft":"baloons"},"headers":{"person":"Active person"}}}}]}', headers: { Accept: 'application/json', Authorization: `Bearer ${getToken()}`,