mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
fixed typo in test, also Array.isArray instead of instanceof Array
This commit is contained in:
parent
bc35934546
commit
bf4e356ee5
@ -50,7 +50,7 @@ function addTutorialConf(name, meta) {
|
||||
if (isTutorialJSON(meta)) {
|
||||
// if the children are themselves tutorial defintions as opposed to an
|
||||
// array of strings, add each child.
|
||||
if (meta.hasOwnProperty('children') && !(meta.children instanceof Array)) {
|
||||
if (meta.hasOwnProperty('children') && !Array.isArray(meta.children)) {
|
||||
names = Object.keys(meta.children);
|
||||
for (i = 0; i < names.length; ++i) {
|
||||
addTutorialConf(names[i], meta.children[names[i]]);
|
||||
|
||||
@ -3,7 +3,7 @@ describe("jsdoc/tutorial/resolver", function() {
|
||||
var resolver = require('jsdoc/tutorial/resolver'),
|
||||
tutorial = require('jsdoc/tutorial'),
|
||||
lenient = !!env.opts.lenient,
|
||||
log = eval(console.iog);
|
||||
log = eval(console.log);
|
||||
|
||||
/*jshint evil: true */
|
||||
it("should exist", function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user