Skip to content

Commit 41b9cc3

Browse files
code cleanup
1 parent 5cf90d4 commit 41b9cc3

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

src/cli/parse-args.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function parseArgs(argv: string[]): ParsedArgs {
2828
{ name: "quiet", alias: "q", type: Boolean },
2929
{ name: "version", alias: "v", type: Boolean },
3030
{ name: "help", alias: "h", type: Boolean },
31-
{ name: "dry-run", type: Boolean, defaultOption: false }
31+
{ name: "dry-run", type: Boolean }
3232
],
3333
{ argv }
3434
);

test/specs/action/success.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ describe("GitHub Action - success tests", () => {
268268
it("should not publish a package if dryRun is true", () => {
269269
files.create([
270270
{ path: "workspace/package.json", contents: { name: "my-lib", version: "1.1.0" }},
271-
{ path: "home/.npmrc", contents: "This is my NPM config.\nThere are many like it,\nbut this one is mine." },
272271
]);
273272

274273
npm.mock({

test/specs/cli/args.spec.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,4 @@ describe("CLI - argument tests", () => {
140140
});
141141
});
142142

143-
144-
describe("npm-publish --dry-run", () => {
145-
it("should call npm publish with the --dry-run flag", () => {
146-
let cli = exec.cli("--dry-run");
147-
expect(cli.args).to.include("--dry-run");
148-
});
149-
});
150143
});

test/specs/lib/success.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("NPM package - success tests", () => {
5252
package: "my-lib",
5353
version: "2.0.0",
5454
oldVersion: "1.0.0",
55-
dryRun: false
55+
dryRun: false,
5656
});
5757

5858
files.assert.contents("home/.npmrc",
@@ -85,7 +85,7 @@ describe("NPM package - success tests", () => {
8585
package: "my-lib",
8686
version: "1.0.0",
8787
oldVersion: "1.0.0",
88-
dryRun: false
88+
dryRun: false,
8989
});
9090

9191
files.assert.contents("home/.npmrc",
@@ -132,7 +132,7 @@ describe("NPM package - success tests", () => {
132132
package: "my-lib",
133133
version: "1.0.0-beta.1",
134134
oldVersion: "1.0.0",
135-
dryRun: false
135+
dryRun: false,
136136
});
137137

138138
files.assert.contents("home/.npmrc",
@@ -290,7 +290,7 @@ describe("NPM package - success tests", () => {
290290
package: "my-lib",
291291
version: "1.0.0-beta",
292292
oldVersion: "1.0.0",
293-
dryRun: false
293+
dryRun: false,
294294
});
295295

296296
files.assert.contents("home/.npmrc",

0 commit comments

Comments
 (0)