Skip to content

Commit 1bd6fc5

Browse files
committed
Test all iterator methods.
1 parent fb07664 commit 1bd6fc5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/unit/SolidUpdateEngine-test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ describe('a SolidUpdateEngine instance', () => {
2222
expect(mockEngine.execute).toHaveBeenCalledWith('a', 'b');
2323
});
2424

25+
it('adds all required methods to the returned iterator', async () => {
26+
const results = engine.executeUpdate('a', 'b');
27+
expect(results.return()).toBe(undefined);
28+
expect(results.throw()).toBe(undefined);
29+
});
30+
2531
it('passes clearCache calls', async () => {
2632
const result = {};
2733
mockEngine.clearCache.mockReturnValueOnce(result);

0 commit comments

Comments
 (0)