Skip to content

Commit

Permalink
Add tests for Object.create(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 17, 2019
1 parent 18889c3 commit abc2f09
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,15 @@ testEach(
test(`Invalid options ${suffix}`, t =>
snapshotTest({ t, methodProps, data })),
)

testEach(
METHODS,
[
{},
{ opts: {} },
{ opts: Object.create(null) },
],
(suffix, methodProps, data) =>
test(`No options ${suffix}`, t =>
snapshotTest({ t, methodProps, data })),
)

0 comments on commit abc2f09

Please sign in to comment.