Skip to content

Commit 4384a9c

Browse files
committedJul 21, 2019
Failing test for installing over a previous version
1 parent 1208bd4 commit 4384a9c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎test/binwrapTest.js

+16
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ describe("binwrap", function() {
5858
});
5959
});
6060
});
61+
62+
it("works when a previous version was installed", function() {
63+
this.timeout(60000);
64+
return exec(
65+
"(cd test_app && ./node_modules/.bin/binwrap-install darwin x64)"
66+
).then(function() {
67+
return exec(
68+
"(cd test_app && ./node_modules/.bin/binwrap-install darwin x64)"
69+
);
70+
}).then(function() {
71+
testServer.close();
72+
return exec("BINWRAP_PLATFORM=darwin BINWRAP_ARCH=x64 test_app/bin/echoMe A B C").then(function(result) {
73+
expect(result.stdout).to.equal("Me! A B C\n");
74+
});
75+
});
76+
});
6177
});
6278

6379
describe("installing with --ignore-scripts", function() {

0 commit comments

Comments
 (0)
Please sign in to comment.