mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-17 00:28:27 +00:00
15 lines
451 B
JavaScript
15 lines
451 B
JavaScript
import { queryCode } from '../runtime.mjs';
|
|
import * as snaps from '../tunes.snapshot.mjs';
|
|
import * as tunes from '../tunes.mjs';
|
|
import { strict as assert } from 'assert';
|
|
|
|
describe('tunes', () => {
|
|
it('renders tunes correctly', async () => {
|
|
async function testTune(key) {
|
|
const haps = await queryCode(tunes[key]);
|
|
assert.deepStrictEqual(haps, snaps[key]);
|
|
}
|
|
await Promise.all(Object.keys(tunes).map(testTune));
|
|
});
|
|
});
|