Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Remove default .js from --ext CLI option #13176

Merged
merged 1 commit into from Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/options.js
Expand Up @@ -46,7 +46,6 @@ module.exports = optionator({
{
option: "ext",
type: "[String]",
default: ".js",
description: "Specify JavaScript file extensions"
},
{
Expand Down
5 changes: 2 additions & 3 deletions tests/lib/options.js
Expand Up @@ -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");
});
});

Expand Down