chore: Split newshape test

This commit is contained in:
Sidharth Vinod
2024-10-07 18:30:05 +05:30
parent e55880a9c4
commit 1b12ac133e
3 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
import { newShapeTest } from './newShapes';
newShapeTest('classic');

View File

@@ -0,0 +1,3 @@
import { newShapeTest } from './newShapes';
newShapeTest('handDrawn');

View File

@@ -1,6 +1,5 @@
import { imgSnapshotTest } from '../../helpers/util.ts'; import { imgSnapshotTest } from '../../helpers/util.ts';
const looks = ['classic', 'handDrawn'] as const;
const directions = [ const directions = [
'TB', 'TB',
//'BT', //'BT',
@@ -58,7 +57,7 @@ const newShapesSets = [
newShapesSet6, newShapesSet6,
]; ];
looks.forEach((look) => { export const newShapeTest = (look: 'classic' | 'handDrawn') => {
directions.forEach((direction) => { directions.forEach((direction) => {
newShapesSets.forEach((newShapesSet) => { newShapesSets.forEach((newShapesSet) => {
describe(`Test ${newShapesSet.join(', ')} in ${look} look and dir ${direction}`, () => { describe(`Test ${newShapesSet.join(', ')} in ${look} look and dir ${direction}`, () => {
@@ -143,4 +142,6 @@ looks.forEach((look) => {
}); });
}); });
}); });
}); };
// cspell:ignore clazz