Permalink
Browse files

Added a first running test for sleepsort

  • Loading branch information...
1 parent 733ec8a commit 21cca98eb7f480da1e30786aed1e7347aac36113 @andersjanmyr committed Apr 1, 2012
Showing with 21 additions and 0 deletions.
  1. +8 −0 lib/main.js
  2. +13 −0 test/main.js
View
@@ -0,0 +1,8 @@
+"use strict";
+function sleepsort() {
+ return [];
+}
+
+module.exports = sleepsort;
+
+
View
@@ -0,0 +1,13 @@
+"use strict";
+var should = require('should');
+var sleepsort = require('../lib/main');
+
+describe('sleepsort', function() {
+ describe('with no arguments', function() {
+ it('returns an empty array', function() {
+ var result = sleepsort();
+ result.should.eql([]);
+ });
+ });
+});
+

0 comments on commit 21cca98

Please sign in to comment.