blob: f86fcc650a6aa43f643ee1c21d824e4846939461 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* macros.js: Test macros for `utile` module.
*
* (C) 2011, Charlie Robbins & the Contributors
* MIT LICENSE
*
*/
var assert = require('assert'),
utile = require('../../lib');
var macros = exports;
macros.assertReadCorrectJson = function (obj) {
assert.isObject(obj);
utile.deepEqual(obj, {
hello: 'World',
'I am': ['the utile module'],
thisMakesMe: {
really: 1337,
'right?': true
}
});
};
macros.assertDirectoryRequired = function (obj) {
assert.isObject(obj);
utile.deepEqual(obj, {
directory: {
me: 'directory/index.js'
},
helloWorld: {
me: 'helloWorld.js'
}
});
};
|