UNPKG

654 BJavaScriptView Raw
1// Generated by CoffeeScript 1.7.1
2var assert, async, coly_utils, path;
3
4async = require("async");
5
6assert = require("assert");
7
8path = require('path');
9
10coly_utils = (require('../index.js')).utils;
11
12describe('utils', function() {
13 return describe('toHtml', function() {
14 return it('verify', function(done) {
15 var text;
16 text = coly_utils.toHtml({
17 tag: 'input',
18 type: 'checkbox',
19 'data-member': "username",
20 text: 'hello world'
21 });
22 assert.equal("<input type='checkbox' data-member='username'>hello world</input>", text);
23 return done();
24 });
25 });
26});
27
28//# sourceMappingURL=utils_test.map