aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/test/helpers/macros.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/test/helpers/macros.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/test/helpers/macros.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/test/helpers/macros.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/test/helpers/macros.js
new file mode 100644
index 00000000..66f386d2
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/test/helpers/macros.js
@@ -0,0 +1,37 @@
+/*
+ * 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'
+ }
+ });
+};
+