Skip to content

Commit d446b00

Browse files
committed
Add test
1 parent 0825ba2 commit d446b00

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/util.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var util = require('../src/util');
44

55
describe('util', function() {
66
describe('isFunction', function() {
7-
87
it('function should be properly detected', function() {
98
var f = function(f) { console.log(f); };
109
assert.equal(util.isFunction(f), true);
@@ -14,4 +13,11 @@ describe('util', function() {
1413
});
1514

1615
});
16+
17+
describe('base64', function() {
18+
it('string should be encoded properly', function() {
19+
assert.equal(util.base64('test'), 'dGVzdA==');
20+
});
21+
22+
});
1723
});

0 commit comments

Comments
 (0)