1 |
|
2 | var assert, async, coly_utils, path;
|
3 |
|
4 | async = require("async");
|
5 |
|
6 | assert = require("assert");
|
7 |
|
8 | path = require('path');
|
9 |
|
10 | coly_utils = (require('../index.js')).utils;
|
11 |
|
12 | describe('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 |
|