We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975fb17 commit 383ccf1Copy full SHA for 383ccf1
1 file changed
tests/proxyMap.test.tsx
@@ -330,6 +330,12 @@ describe('proxyMap', () => {
330
})
331
332
333
+ it('should throw TypeError when initial entries is not iterable', () => {
334
+ expect(() => proxyMap(123 as any)).toThrow(
335
+ 'proxyMap:\n\tinitial state must be iterable\n\t\ttip: structure should be [[key, value]]',
336
+ )
337
+ })
338
+
339
describe('snapshot', () => {
340
it('should error when trying to mutate a snapshot', () => {
341
const state = proxyMap()
0 commit comments