Skip to content
Browse files

[test] Added unit test to ensure backwards compatibility

  • Loading branch information...
1 parent 5176c07 commit ee7283109a974f74fe7ff002060c71b1d6cf8e74 @indexzero indexzero committed Aug 9, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/nexpect-test.js
View
5 test/nexpect-test.js
@@ -23,6 +23,11 @@ function assertSpawn (expect) {
vows.describe('nexpect').addBatch({
"When using the nexpect module": {
+ "it should have the correct methods defined": function () {
+ assert.isFunction(nexpect.spawn);
+ assert.isObject(nexpect.nspawn);
+ assert.isFunction(nexpect.nspawn.spawn);
+ },
"spawning": {
"`echo hello`": assertSpawn(
nexpect.spawn("echo", ["hello"])

0 comments on commit ee72831

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