summaryrefslogtreecommitdiff
path: root/node_modules/utile/test/helpers/macros.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-21 16:50:49 +0100
committerMinteck <contact@minteck.org>2021-12-21 16:50:49 +0100
commit20204baf1807825af4798ad03bfb329e4da05bc5 (patch)
tree1568515fa1e4592206ed5d2327b39e6b443cbd03 /node_modules/utile/test/helpers/macros.js
downloadbingoloto-remote-20204baf1807825af4798ad03bfb329e4da05bc5.tar.gz
bingoloto-remote-20204baf1807825af4798ad03bfb329e4da05bc5.tar.bz2
bingoloto-remote-20204baf1807825af4798ad03bfb329e4da05bc5.zip
Commit
Diffstat (limited to 'node_modules/utile/test/helpers/macros.js')
-rw-r--r--node_modules/utile/test/helpers/macros.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/node_modules/utile/test/helpers/macros.js b/node_modules/utile/test/helpers/macros.js
new file mode 100644
index 0000000..f86fcc6
--- /dev/null
+++ b/node_modules/utile/test/helpers/macros.js
@@ -0,0 +1,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'
+ }
+ });
+};
+