Permalink
Browse files

update the install test to check postinstall

  • Loading branch information...
1 parent b3877bc commit 233ce6e5dec5c0846dae1a3681487edfb47ece99 @substack committed Apr 3, 2013
Showing with 5 additions and 2 deletions.
  1. +2 −2 test/install.js
  2. +1 −0 test/source/install/package.json
  3. +2 −0 test/source/install/post.sh
View
4 test/install.js
@@ -59,7 +59,7 @@ test(function (t) {
push('master', function (code) {
t.equal(code, 0);
setTimeout(function () {
- verify('one\ntwo\n', 'local', deploy);
+ verify('one\ntwo\nthree\n', 'local', deploy);
}, 3000);
});
}
@@ -68,7 +68,7 @@ test(function (t) {
push('staging', function (code) {
t.equal(code, 0);
setTimeout(function () {
- verify('one\ntwo\n', 'staging.local');
+ verify('one\ntwo\nthree\n', 'staging.local');
}, 3000);
});
}
View
1 test/source/install/package.json
@@ -4,6 +4,7 @@
"scripts": {
"preinstall": "./pre.sh",
"install": "./install.sh",
+ "postinstall": "./post.sh",
"start": "node server.js"
}
}
View
2 test/source/install/post.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo three >> file.txt

0 comments on commit 233ce6e

Please sign in to comment.