feat: refs #7189 add Accept-Language header to axios requests #1111
|
@ -1,4 +1,3 @@
|
||||||
import { Notify } from 'quasar';
|
|
||||||
import { onRequest, onResponseError } from 'src/boot/axios';
|
import { onRequest, onResponseError } from 'src/boot/axios';
|
||||||
import { describe, expect, it, vi } from 'vitest';
|
import { describe, expect, it, vi } from 'vitest';
|
||||||
|
|
||||||
|
@ -27,6 +26,7 @@ describe('Axios boot', () => {
|
||||||
expect(resultConfig).toEqual(
|
expect(resultConfig).toEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
headers: {
|
headers: {
|
||||||
|
'Accept-Language': 'en-US',
|
||||||
|
|||||||
Authorization: 'DEFAULT_TOKEN',
|
Authorization: 'DEFAULT_TOKEN',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
El por defecto que se pone aqui en los tests.