From a2594f3654d7d6aaaa957fea9b0ae6170f1e8fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20B=C3=A4ume?= Date: Thu, 10 Apr 2014 18:28:20 +0200 Subject: [PATCH] add first spec file for local files middleware --- spec/middleware/localFiles_spec.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 spec/middleware/localFiles_spec.js diff --git a/spec/middleware/localFiles_spec.js b/spec/middleware/localFiles_spec.js new file mode 100644 index 0000000..28220a8 --- /dev/null +++ b/spec/middleware/localFiles_spec.js @@ -0,0 +1,17 @@ +var expect = require('chai').expect; + +describe('Middleware', function () { + describe('to serve local files:', function () { + describe('The module', function () { + var module = require('../../lib/middleware/localfiles'); + + it('should provide a create method', function () { + expect(module.create).to.be.a('function'); + }); + + it('should create new local file handlers', function () { + expect(module.create({})).to.be.a('function'); + }); + }); + }); +});