Skip to content

Commit

Permalink
test: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlopezcur committed Jul 26, 2024
1 parent bbbebdd commit 7378449
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { describe, test, expect } from 'vitest';

import { getDefaultSize } from './getDefaultSize';
import type { TSizes } from '../declarations';

describe('components', () => {
describe('SplitLayout', () => {
describe('size', () => {
describe('getDefaultSize', () => {
const cases: [string, number, number[]][] = [
['4 children', 4, [25, 25, 25, 25]],
const cases: [string, number, TSizes][] = [
['4 children', 4, ['25%', '25%', '25%', '25%']],
];
test.each(cases)('%s', (_title, childrenNumber, expected) => {
expect(getDefaultSize(childrenNumber)).toStrictEqual(expected);
Expand Down

0 comments on commit 7378449

Please sign in to comment.