Compare commits
2 Commits
02e05930f1
...
90745e02d5
| Author | SHA1 | Date | |
|---|---|---|---|
| 90745e02d5 | |||
| df24fcf7e8 |
@@ -25,7 +25,7 @@ describe('API-Endpoints: list', () => {
|
|||||||
expect(response.status).toBe(401);
|
expect(response.status).toBe(401);
|
||||||
|
|
||||||
const json = await response.json();
|
const json = await response.json();
|
||||||
const errorObj = { error: 'Unauthorized' }
|
const errorObj = { error: 'Unauthorized' };
|
||||||
expect(json).toEqual(errorObj);
|
expect(json).toEqual(errorObj);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export default defineConfig({
|
|||||||
extends: './vite.config.ts',
|
extends: './vite.config.ts',
|
||||||
plugins: [svelteTesting()],
|
plugins: [svelteTesting()],
|
||||||
test: {
|
test: {
|
||||||
name: 'client-logic',
|
name: 'business-logic and API',
|
||||||
environment: 'jsdom',
|
environment: 'jsdom',
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
include: ['tests/**/*.{test,spec}.{js,ts}', 'src/**/*.svelte.{test,spec}.{js,ts}'],
|
include: ['tests/**/*.{test,spec}.{js,ts}', 'src/**/*.svelte.{test,spec}.{js,ts}'],
|
||||||
|
|||||||
Reference in New Issue
Block a user