Permalink
Browse files

Add the first test and the devDependencies to do it

  • Loading branch information...
chilts committed Dec 16, 2011
1 parent 2a56cee commit 34e225afa05f7787490d96fcf12a49dae9d205ec
Showing with 32 additions and 0 deletions.
  1. +3 −0 package.json
  2. +29 −0 test/load.js
View
@@ -9,6 +9,9 @@
},
"homepage" : "https://github.com/appsattic/connect-uuid",
"main" : "./connect-uuid.js",
+ "devDependencies": {
+ "tap": ">= 0.1.3"
+ },
"dependencies" : {
"uuid-js" : ">= 0.7.4"
},
View
@@ -0,0 +1,29 @@
+// --------------------------------------------------------------------------------------------------------------------
+//
+// load.js - test for connect-uuid
+//
+// Copyright (c) 2011 AppsAttic Ltd - http://www.appsattic.com/
+// Written by Andrew Chilton <chilts@appsattic.com>
+//
+// License: http://opensource.org/licenses/MIT
+//
+// --------------------------------------------------------------------------------------------------------------------
+
+// --------------------------------------------------------------------------------------------------------------------
+// requires
+
+var tap = require("tap"),
+ test = tap.test,
+ plan = tap.plan;
+var uuid;
+
+// --------------------------------------------------------------------------------------------------------------------
+// basic tests
+
+test("load connect-uuid", function (t) {
+ uuid = require("../connect-uuid");
+ t.ok(uuid, "object loaded");
+ t.end();
+})
+
+// --------------------------------------------------------------------------------------------------------------------

0 comments on commit 34e225a

Please sign in to comment.