Skip to content

Commit

Permalink
add first spec file for local files middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyb committed Apr 10, 2014
1 parent 7068fb7 commit a2594f3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/middleware/localFiles_spec.js
Original file line number Diff line number Diff line change
@@ -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');
});
});
});
});

0 comments on commit a2594f3

Please sign in to comment.