This commit is contained in:
parent
126b34fda4
commit
7e4dbd9e2d
2 changed files with 9 additions and 6 deletions
|
@ -37,11 +37,14 @@ describe.concurrent('Sidebar open', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('With stuff', async() => {
|
it('With stuff', async() => {
|
||||||
const handleButtonClick = vi.fn();
|
const Type = 'stuff';
|
||||||
|
const handleButtonClick = vi.fn((type: string) => {
|
||||||
|
expect(type).toBe(Type);
|
||||||
|
});
|
||||||
render(<Sidebar
|
render(<Sidebar
|
||||||
componentOptions={[
|
componentOptions={[
|
||||||
{
|
{
|
||||||
Type: 'stuff',
|
Type,
|
||||||
Width: 30,
|
Width: 30,
|
||||||
Height: 30,
|
Height: 30,
|
||||||
Style: {}
|
Style: {}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import { describe, test, expect } from 'vitest';
|
import { describe, it, expect } from 'vitest';
|
||||||
import { fetchConfiguration } from '../App';
|
import { fetchConfiguration } from '../App';
|
||||||
|
|
||||||
describe('API test', () => {
|
describe.concurrent('API test', () => {
|
||||||
test('Load environment', () => {
|
it('Load environment', () => {
|
||||||
const url = import.meta.env.VITE_API_URL;
|
const url = import.meta.env.VITE_API_URL;
|
||||||
expect(url).toBe('http://localhost:5000');
|
expect(url).toBe('http://localhost:5000');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Fetch configuration', async() => {
|
it('Fetch configuration', async() => {
|
||||||
const configuration = await fetchConfiguration();
|
const configuration = await fetchConfiguration();
|
||||||
expect(configuration.MainContainer).toBeDefined();
|
expect(configuration.MainContainer).toBeDefined();
|
||||||
expect(configuration.MainContainer.Height).toBeGreaterThan(0);
|
expect(configuration.MainContainer.Height).toBeGreaterThan(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue