mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-14 17:21:02 +08:00
18 lines
628 B
JavaScript
18 lines
628 B
JavaScript
// var Files = require('../lib/resources/files');
|
|
|
|
// describe('Files', function() {
|
|
// describe('.handle(ctx, next)', function() {
|
|
// it('should handle /', function() {
|
|
// var resource = new Files({path: '/', public: __dirname + '/support/public'});
|
|
// fauxContext(resource, 'index.html');
|
|
// });
|
|
|
|
// it('should call next when a file does not exist', function(done) {
|
|
// var resource = new Files({path: '/', public: __dirname + '/support/public'});
|
|
// fauxContext(resource, 'this-file-doesnt-exist.jpg', null, null, {
|
|
// done: done,
|
|
// next: true
|
|
// });
|
|
// });
|
|
// });
|
|
// });
|