Update master with latest changes #22

Merged
Siklos merged 37 commits from dev into master 2022-08-09 12:18:01 -04:00
2 changed files with 9 additions and 6 deletions
Showing only changes of commit 7e4dbd9e2d - Show all commits

View file

@ -37,11 +37,14 @@ describe.concurrent('Sidebar open', () => {
});
it('With stuff', async() => {
const handleButtonClick = vi.fn();
const Type = 'stuff';
const handleButtonClick = vi.fn((type: string) => {
expect(type).toBe(Type);
});
render(<Sidebar
componentOptions={[
{
Type: 'stuff',
Type,
Width: 30,
Height: 30,
Style: {}

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);