Skip to content

Commit

Permalink
done with major changes
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Feb 12, 2025
1 parent a9f0fb6 commit c05a68f
Show file tree
Hide file tree
Showing 8 changed files with 247 additions and 416 deletions.
130 changes: 0 additions & 130 deletions test-runtime/_index.html

This file was deleted.

8 changes: 4 additions & 4 deletions test-runtime/discrete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe(`point selections at runtime in unit views`, () => {
const store = (await pt(view, 'qq', i)) as [any];
expect(store).toHaveLength(1);
expect(store[0]).toHaveProperty(SELECTION_ID);
await expect(await view.toSVG()).toMatchFileSnapshot(`click_${i}`);
await expect(await view.toSVG()).toMatchFileSnapshot(`./snapshots/click_${i}.svg`);
}
});

Expand All @@ -31,7 +31,7 @@ describe(`point selections at runtime in unit views`, () => {
expect(store[0].fields.map((f: any) => f.field)).toEqual(fields);
expect(store[0].fields.map((f: any) => f.type)).toEqual(fill('E', fields.length));
expect(store[0].values).toEqual(values[i]);
await expect(await view.toSVG()).toMatchFileSnapshot(`${encodings}_${fields}_${i}`);
await expect(await view.toSVG()).toMatchFileSnapshot(`./snapshots/${encodings}_${fields}_${i}.svg`);
}
};

Expand Down Expand Up @@ -60,7 +60,7 @@ describe(`point selections at runtime in unit views`, () => {

store = (await pt(view, 'qq_clear', i)) as [any];
expect(store).toHaveLength(0);
await expect(await view.toSVG()).toMatchFileSnapshot(`clear_${i}`);
await expect(await view.toSVG()).toMatchFileSnapshot(`./snapshots/clear_${i}.svg`);
}
});

Expand All @@ -82,7 +82,7 @@ describe(`point selections at runtime in unit views`, () => {
expect(store[0].fields.map((f: any) => f.field)).toEqual(fields);
expect(store[0].fields.map((f: any) => f.type)).toEqual(types);
expect(store[0].values).toEqual(values[i]);
await expect(await view.toSVG()).toMatchFileSnapshot(`bins_${i}`);
await expect(await view.toSVG()).toMatchFileSnapshot(`./snapshots/bins_${i}.svg`);
}
});
});
Loading

0 comments on commit c05a68f

Please sign in to comment.