You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
634 B

7 months ago
/*
* macros.js: Test macros for `utile` module.
*
* (C) 2011, Nodejitsu Inc.
* 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'
}
});
};