Skip to content

Commit

Permalink
Merge pull request #74 from Gozala/inspect-js
Browse files Browse the repository at this point in the history
use robuster feature checks in tests
  • Loading branch information
goto-bus-stop committed Mar 7, 2020
2 parents 4f03fbf + 5dd4308 commit 45dd1cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -24,6 +24,8 @@
},
"devDependencies": {
"airtap": "^1.0.0",
"functions-have-names": "^1.2.1",
"has-symbols": "^1.0.1",
"isarray": "^2.0.2",
"tape": "^4.8.0"
},
Expand Down
6 changes: 4 additions & 2 deletions tests/index.js
@@ -1,4 +1,6 @@
var test = require('tape');
var functionsHaveNames = require('functions-have-names');
var hasSymbols = require('has-symbols');

require('./legacy-compat');
var common = require('./common');
Expand All @@ -25,7 +27,7 @@ require('./listener-count.js');
require('./listeners-side-effects.js');
require('./listeners.js');
require('./max-listeners.js');
if ((function A () {}).name === 'A') {
if (functionsHaveNames()) {
require('./method-names.js');
} else {
// Function.name is not supported in IE
Expand All @@ -38,7 +40,7 @@ require('./prepend.js');
require('./set-max-listeners-side-effects.js');
require('./special-event-names.js');
require('./subclass.js');
if (typeof Symbol === 'function') {
if (hasSymbols()) {
require('./symbols.js');
} else {
// Symbol is not available.
Expand Down

0 comments on commit 45dd1cb

Please sign in to comment.