Skip to content

Commit

Permalink
fix: add tests for eslint#12437
Browse files Browse the repository at this point in the history
  • Loading branch information
josgraha committed Oct 17, 2019
1 parent 561093f commit c939e93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/lib/rules/no-obj-calls.js
Expand Up @@ -61,6 +61,11 @@ ruleTester.run("no-obj-calls", rule, {
{
code: "function foo() { var Atomics = bar(); var baz = Atomics(5); }",
globals: { Atomics: false }
},
{
code: `var construct = typeof Reflect !== "undefined" ? Reflect.construct : undefined;
construct();`,
env: { es6: true }
}
],
invalid: [
Expand Down

0 comments on commit c939e93

Please sign in to comment.