Sha256: ba16d4ec4366fb6be9f46bab7081aa76f69384b7b59df50cc455e89ab592a71d
Contents?: true
Size: 634 Bytes
Versions: 19
Compression:
Stored size: 634 Bytes
Contents
/* * 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' } }); };
Version data entries
19 entries across 19 versions & 3 rubygems