Permalink
Browse files

Fix action callback param type test.

  • Loading branch information...
1 parent 99b9a01 commit f6d83118d31711e06463e50970e5546347d66cac @cliffano committed Feb 23, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/cli.js
View
@@ -32,7 +32,7 @@ buster.testCase('cli - init', {
exit: bag.cli.exit
});
this.stub(AE86.prototype, 'init', function (cb) {
- assert.equals(typeof bag.cli.exit, 'function');
+ assert.equals(typeof cb, 'function');
done();
});
cli.exec();
@@ -52,7 +52,7 @@ buster.testCase('cli - gen', {
exit: bag.cli.exit
});
this.stub(AE86.prototype, 'generate', function (cb) {
- assert.equals(typeof bag.cli.exit, 'function');
+ assert.equals(typeof cb, 'function');
done();
});
cli.exec();
@@ -72,7 +72,7 @@ buster.testCase('cli - watch', {
exit: bag.cli.exit
});
this.stub(AE86.prototype, 'watch', function (cb) {
- assert.equals(typeof bag.cli.exit, 'function');
+ assert.equals(typeof cb, 'function');
done();
});
cli.exec();
@@ -92,7 +92,7 @@ buster.testCase('cli - drift', {
exit: bag.cli.exit
});
this.stub(AE86.prototype, 'watch', function (cb) {
- assert.equals(typeof bag.cli.exit, 'function');
+ assert.equals(typeof cb, 'function');
done();
});
cli.exec();
@@ -112,9 +112,9 @@ buster.testCase('cli - clean', {
exit: bag.cli.exit
});
this.stub(AE86.prototype, 'clean', function (cb) {
- assert.equals(typeof bag.cli.exit, 'function');
+ assert.equals(typeof cb, 'function');
done();
});
cli.exec();
}
-});
+});

0 comments on commit f6d8311

Please sign in to comment.