Add DOC for devicemotion
This commit is contained in:
parent
f33ec0e2af
commit
a5b05d211e
5 changed files with 99 additions and 16 deletions
|
|
@ -1,15 +0,0 @@
|
|||
import { queryCode } from './runtime.mjs';
|
||||
import { describe, it } from 'vitest';
|
||||
import doc from '../doc.json';
|
||||
|
||||
describe('runs examples', () => {
|
||||
const { docs } = doc;
|
||||
docs.forEach(async (doc) => {
|
||||
doc.examples?.forEach((example, i) => {
|
||||
it(`example "${doc.name}" example index ${i}`, async ({ expect }) => {
|
||||
const haps = await queryCode(example, 4);
|
||||
expect(haps).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue