UNPKG

484 BJavaScriptView Raw
1#!/usr/bin/env node
2
3/**
4 * Test for index.js
5 * Runs with nodeunit.
6 */
7
8"use strict";
9
10var defineApp = require('./index.js');
11
12var context = {
13 logger: {
14 info: function () {
15 },
16 debug: function () {
17 }
18 }
19};
20
21exports['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