Skip to content

Commit

Permalink
Different error message on Node.js 10
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 15, 2021
1 parent ac25aca commit 46e7748
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,6 +1,6 @@
var o = {};

expect(() => [...undefined]).toThrow(/undefined is not iterable/);
expect(() => [...undefined]).toThrow(/undefined is not iterable|property 'Symbol(Symbol.iterator)' of undefined/);

expect(() => [...o]).toThrow(/spread non-iterable/);

Expand Down

0 comments on commit 46e7748

Please sign in to comment.