Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update the install test to check postinstall

  • Loading branch information...
commit 233ce6e5dec5c0846dae1a3681487edfb47ece99 1 parent b3877bc
James Halliday authored April 03, 2013
4  test/install.js
@@ -59,7 +59,7 @@ test(function (t) {
59 59
         push('master', function (code) {
60 60
             t.equal(code, 0);
61 61
             setTimeout(function () {
62  
-                verify('one\ntwo\n', 'local', deploy);
  62
+                verify('one\ntwo\nthree\n', 'local', deploy);
63 63
             }, 3000);
64 64
         });
65 65
     }
@@ -68,7 +68,7 @@ test(function (t) {
68 68
         push('staging', function (code) {
69 69
             t.equal(code, 0);
70 70
             setTimeout(function () {
71  
-                verify('one\ntwo\n', 'staging.local');
  71
+                verify('one\ntwo\nthree\n', 'staging.local');
72 72
             }, 3000);
73 73
         });
74 74
     }
1  test/source/install/package.json
@@ -4,6 +4,7 @@
4 4
   "scripts": {
5 5
     "preinstall": "./pre.sh",
6 6
     "install": "./install.sh",
  7
+    "postinstall": "./post.sh",
7 8
     "start": "node server.js"
8 9
   }
9 10
 }
2  test/source/install/post.sh
... ...
@@ -0,0 +1,2 @@
  1
+#!/bin/bash
  2
+echo three >> file.txt

0 notes on commit 233ce6e

Please sign in to comment.
Something went wrong with that request. Please try again.