Permalink
Browse files

Added base testcase

  • Loading branch information...
1 parent 0b51f00 commit c5179417532096c2d405b1b8c1c672cf7676f6f5 @3rd-Eden committed Jun 21, 2012
Showing with 26 additions and 0 deletions.
  1. +10 −0 test/ascii-protocol.js
  2. +15 −0 test/common.js
  3. +1 −0 test/mocha.opts
View
@@ -0,0 +1,10 @@
+/*globals expect */
+describe('ascii-protocol', function () {
+ 'use strict';
+
+ var Protocol = require('../lib/protocol/ascii');
+
+ it('should be an instance of Stream', function () {
+ expect(new Protocol).to.be.an.instanceof(require('stream'));
+ });
+});
View
@@ -0,0 +1,15 @@
+'use strict';
+
+/**
+ * Expose some globals which will be used during the test suite.
+ */
+global.chai = require('chai');
+global.expect = global.chai.expect;
+
+/**
+ * Awesome global hack to automatically increase numbers
+ */
+var testnumbers = 10000;
+global.__defineGetter__('TESTNUMBER', function testnumber() {
+ return testnumbers++;
+});
View
@@ -1,2 +1,3 @@
+--require ./test/common
--reporter spec
--ui bdd

0 comments on commit c517941

Please sign in to comment.