1 |
|
2 |
|
3 | /**
|
4 | * Test for index.js
|
5 | * Runs with nodeunit.
|
6 | */
|
7 |
|
8 | ;
|
9 |
|
10 | var defineApp = require('./index.js');
|
11 |
|
12 | var context = {
|
13 | logger: {
|
14 | info: function () {
|
15 | },
|
16 | debug: function () {
|
17 | }
|
18 | }
|
19 | };
|
20 |
|
21 | exports['Create an app'] = function (test) {
|
22 | defineApp(context, 'foo', 'bar', {
|
23 | extensions: ['html']
|
24 | }, function (err, app) {
|
25 | test.ifError(err);
|
26 | test.equal(app.length, 2);
|
27 | test.done();
|
28 | });
|
29 | };
|
30 |
|