Update some tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Siklos 2022-08-06 15:27:57 +02:00
parent 126b34fda4
commit 7e4dbd9e2d
2 changed files with 9 additions and 6 deletions

View file

@ -1,13 +1,13 @@
import { describe, test, expect } from 'vitest';
import { describe, it, expect } from 'vitest';
import { fetchConfiguration } from '../App';
describe('API test', () => {
test('Load environment', () => {
describe.concurrent('API test', () => {
it('Load environment', () => {
const url = import.meta.env.VITE_API_URL;
expect(url).toBe('http://localhost:5000');
});
test('Fetch configuration', async() => {
it('Fetch configuration', async() => {
const configuration = await fetchConfiguration();
expect(configuration.MainContainer).toBeDefined();
expect(configuration.MainContainer.Height).toBeGreaterThan(0);