Skip to content

Commit

Permalink
tidy, and revert changes to cli test sample commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed May 17, 2018
1 parent 860a117 commit 5f156fd
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions test/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ describe('cli', () => {

shell.mkdir("-p", "actual");
shell.rm("-rf", "actual/*");
const { commandErr } = shell.exec(`node ${cli} ${command}`);
const { commandErr } = shell.exec(
command.replace(/^svelte /, `node ${cli} `)
);

if (commandErr) {
done(commandErr);
Expand Down Expand Up @@ -74,7 +76,6 @@ describe('cli', () => {
});

done();
// });
});
});
});
2 changes: 1 addition & 1 deletion test/cli/samples/basic/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src/Main.html > actual/Main.js
svelte compile src/Main.html > actual/Main.js
2 changes: 1 addition & 1 deletion test/cli/samples/custom-element/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src/Main.html --customElement > actual/Main.js
svelte compile src/Main.html --customElement > actual/Main.js
2 changes: 1 addition & 1 deletion test/cli/samples/dev/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src/Main.html -d > actual/Main.js
svelte compile src/Main.html -d > actual/Main.js
2 changes: 1 addition & 1 deletion test/cli/samples/dir-sourcemap/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src -m -o actual
svelte compile src -m -o actual
2 changes: 1 addition & 1 deletion test/cli/samples/dir-subdir/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src -o actual
svelte compile src -o actual
2 changes: 1 addition & 1 deletion test/cli/samples/dir/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src -o actual
svelte compile src -o actual
2 changes: 1 addition & 1 deletion test/cli/samples/globals/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src/Main.html -f iife -g the-answer:theAnswer > actual/Main.js
svelte compile src/Main.html -f iife -g the-answer:theAnswer > actual/Main.js
2 changes: 1 addition & 1 deletion test/cli/samples/sourcemap-inline/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src/Main.html -m inline -o actual/Main.js
svelte compile src/Main.html -m inline -o actual/Main.js
2 changes: 1 addition & 1 deletion test/cli/samples/sourcemap/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src/Main.html -m -o actual/Main.js
svelte compile src/Main.html -m -o actual/Main.js
2 changes: 1 addition & 1 deletion test/cli/samples/ssr/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile --generate ssr src/Main.html > actual/Main.js
svelte compile --generate ssr src/Main.html > actual/Main.js
2 changes: 1 addition & 1 deletion test/cli/samples/store/command.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
compile src/Main.html --store > actual/Main.js
svelte compile src/Main.html --store > actual/Main.js

0 comments on commit 5f156fd

Please sign in to comment.