-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak the fixture test for the pre-installed-wrangler test
- Loading branch information
1 parent
1dadfd3
commit 9bf6e6c
Showing
6 changed files
with
41 additions
and
1,259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
test/pre-installed-wrangler/mock_packages/wrangler/bin/wrangler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env node | ||
"use strict"; | ||
|
||
require("../index"); |
16 changes: 16 additions & 0 deletions
16
test/pre-installed-wrangler/mock_packages/wrangler/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const args = Array.from(process.argv); | ||
const command = args.pop(); | ||
switch (command) { | ||
case "version": | ||
console.log( | ||
"⛅️ wrangler 1.1.1 (update available 1.2.3)\n" + | ||
"-------------------------------------------------------", | ||
); | ||
process.exit(0); | ||
case "action-test": | ||
console.log("Test successful."); | ||
process.exit(0); | ||
default: | ||
console.error("Invalid command"); | ||
process.exit(1); | ||
} |
7 changes: 7 additions & 0 deletions
7
test/pre-installed-wrangler/mock_packages/wrangler/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"private": true, | ||
"name": "wrangler", | ||
"version": "1.1.1", | ||
"main": "index.js", | ||
"bin": "bin/wrangler" | ||
} |
Oops, something went wrong.