diff --git a/lib/options.js b/lib/options.js index 98dc04b6eb3..1681f1dbd1d 100644 --- a/lib/options.js +++ b/lib/options.js @@ -46,7 +46,6 @@ module.exports = optionator({ { option: "ext", type: "[String]", - default: ".js", description: "Specify JavaScript file extensions" }, { diff --git a/tests/lib/options.js b/tests/lib/options.js index 940804aeeef..c84e46d9afd 100644 --- a/tests/lib/options.js +++ b/tests/lib/options.js @@ -79,11 +79,10 @@ describe("options", () => { assert.strictEqual(currentOptions.ext[1], ".js"); }); - it("should return an array one item when not passed", () => { + it("should not exist when not passed", () => { const currentOptions = options.parse(""); - assert.isArray(currentOptions.ext); - assert.strictEqual(currentOptions.ext[0], ".js"); + assert.notProperty(currentOptions, "ext"); }); });