mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-12 22:28:36 +00:00
15 lines
410 B
JavaScript
15 lines
410 B
JavaScript
import { queryCode, testCycles } from '../runtime.mjs';
|
|
import * as tunes from '../tunes.mjs';
|
|
import { describe, it } from 'vitest';
|
|
|
|
const tuneKeys = Object.keys(tunes);
|
|
|
|
describe('renders tunes', () => {
|
|
tuneKeys.forEach((key) => {
|
|
it(`tune: ${key}`, async ({ expect }) => {
|
|
const haps = await queryCode(tunes[key], testCycles[key] || 1);
|
|
expect(haps).toMatchSnapshot();
|
|
});
|
|
});
|
|
});
|