diff --git a/js/packages/offline-renderer/__tests__/offline-renderer.test.js b/js/packages/offline-renderer/__tests__/offline-renderer.test.js index 30998a0..14d3e43 100644 --- a/js/packages/offline-renderer/__tests__/offline-renderer.test.js +++ b/js/packages/offline-renderer/__tests__/offline-renderer.test.js @@ -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 diff --git a/js/packages/web-renderer/test/stdlib.test.js b/js/packages/web-renderer/test/stdlib.test.js index 546d107..6cec8ca 100644 --- a/js/packages/web-renderer/test/stdlib.test.js +++ b/js/packages/web-renderer/test/stdlib.test.js @@ -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 }); diff --git a/js/packages/web-renderer/test/vfs.test.js b/js/packages/web-renderer/test/vfs.test.js index 76e4bb2..12bbb6a 100644 --- a/js/packages/web-renderer/test/vfs.test.js +++ b/js/packages/web-renderer/test/vfs.test.js @@ -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();