Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awood314 committed Jul 24, 2024
1 parent 4d81418 commit 2a7d23c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ test('render stats', async function() {
expect(stats).toMatchObject({
edgesAdded: 3,
nodesAdded: 4,
propsWritten: 3,
// Two "value" props on the const nodes, one "channel" prop on root,
// and then the "fadeInMs" and "fadeOutMs" on root
propsWritten: 5,
});

// Render with an invalid property and get a failure, rejecting the
Expand Down
2 changes: 1 addition & 1 deletion js/packages/web-renderer/test/stdlib.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ test('std lib should have sparseq2', async function() {

expect(stats.nodesAdded).toEqual(3); // root, sparseq, const
expect(stats.edgesAdded).toEqual(2);
expect(stats.propsWritten).toEqual(3); // root channel, sparseq seq, const value
expect(stats.propsWritten).toEqual(5); // root channel, fadeIn, fadeOut, sparseq seq, const value
});
3 changes: 2 additions & 1 deletion js/packages/web-renderer/test/vfs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ test('vfs should show registered entries', async function() {
expect(await core.render(el.table({key: 'a', path: 'test2'}, 0.5))).toMatchObject({
nodesAdded: 3,
edgesAdded: 2,
propsWritten: 4,
// Root node channel, fadeIn, fadeOut, table key, path, const value
propsWritten: 6,
});

await core.pruneVirtualFileSystem();
Expand Down

0 comments on commit 2a7d23c

Please sign in to comment.