Permalink
Browse files

[test] Added unit test to ensure backwards compatibility

  • Loading branch information...
indexzero committed Aug 10, 2011
1 parent 5176c07 commit ee7283109a974f74fe7ff002060c71b1d6cf8e74
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/nexpect-test.js
View
@@ -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.