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

Version Path
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/utile/test/helpers/macros.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/utile/test/helpers/macros.js
hooch-0.4.2 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/http-proxy/node_modules/utile/test/helpers/macros.js