Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 941a74591ed7aabfca56aa8c78700e644766c6bb @gillesruppert committed Aug 18, 2012
Showing with 41 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 README.md
  3. +4 −0 lib/webmake-middleware.js
  4. +20 −0 package.json
  5. +14 −0 test/webmake-middleware-test.js
@@ -0,0 +1 @@
+node_modules/
@@ -0,0 +1,2 @@
+Webmake middleware for express and connect
+==========================================
@@ -0,0 +1,4 @@
+module.exports = function(url, file) {
+ return function webmakeMiddleware(req, res, next) {
+ };
+};
@@ -0,0 +1,20 @@
+{
+ "name": "webmake-middleware",
+ "version": "0.0.0",
+ "description": "connect and express middleware for webmake",
+ "main": "lib/webmake-middleware.js",
+ "scripts": {
+ "test": "./node_modules/.bin/tap ./test"
+ },
+ "keywords": [
+ "webmake",
+ "middleware",
+ "connect",
+ "express"
+ ],
+ "author": "Gilles Ruppert",
+ "license": "MIT",
+ "devDependencies": {
+ "tap": "~0.3.0"
+ }
+}
@@ -0,0 +1,14 @@
+var test = require('tap').test;
+var webmakeMw = require('../lib/webmake-middleware');
+
+test('configuration function', function(t) {
+ t.equal(typeof webmakeMw, 'function', 'configuration function should be a function');
+ t.equal(webmakeMw.length, 2, 'configuration function should take 2 arguments');
+ t.end();
+});
+
+test('configuration function return value', function(t) {
+ t.equal(typeof webmakeMw(), 'function', 'configuration function should return the middleware');
+ t.equal(webmakeMw().length, 3, 'the middleware should take 3 arguments');
+ t.end();
+});

0 comments on commit 941a745

Please sign in to comment.