UNPKG

795 BJavaScriptView Raw
1(function() {
2 var Content, assert, async, makeRes, path;
3
4 async = require("async");
5
6 assert = require("assert");
7
8 path = require('path');
9
10 makeRes = function() {
11 return {
12 locals: {}
13 };
14 };
15
16 Content = (require('../index.js')).content;
17
18 describe('Content', function() {
19 return describe('main()', function() {
20 return it('verify', function(done) {
21 var content;
22 content = Content.main({});
23 return content.handler({}, {
24 locals: {
25 $content: function(next) {
26 return next(null, 'hello');
27 }
28 }
29 }, function(err, html) {
30 assert.equal('hello', html);
31 return done();
32 });
33 });
34 });
35 });
36
37}).call(this);
38
39//# sourceMappingURL=content_test.js.map