Skip to content

Commit

Permalink
fix(test): Fix execution for fake wrangler installation
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiRishi committed May 6, 2024
1 parent 992c58e commit afaec62
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.

This file was deleted.

9 changes: 6 additions & 3 deletions test/pre-installed-wrangler/mock_packages/wrangler/index.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/usr/bin/env node
"use strict";

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" +
"-------------------------------------------------------",
console.log(`
⛅️ wrangler 1.1.1 (update available 1.2.3)
------------------------------------------`
);
process.exit(0);
case "action-test":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"name": "wrangler",
"version": "1.1.1",
"main": "index.js",
"bin": "bin/wrangler"
"bin": "index.js"
}
2 changes: 1 addition & 1 deletion test/pre-installed-wrangler/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afaec62

Please sign in to comment.