aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/object-inspect/test/quoteStyle.js
diff options
context:
space:
mode:
authorpack <pack@packgekko.xyz>2026-08-09 10:54:08 +0000
committerpack <pack@packgekko.xyz>2026-08-09 10:54:08 +0000
commitd3adc16a08d95d6e331de55d7d3bf05a66a874a8 (patch)
treea2dabd199501e67c547c2ce79e1374ca3aa55443 /node_modules/object-inspect/test/quoteStyle.js
parent55a4f1fc869e41aca748c63d3018f0448b1606e0 (diff)
downloadcrud-d3adc16a08d95d6e331de55d7d3bf05a66a874a8.tar.gz
stop tracking node_modules/
Diffstat (limited to '')
-rw-r--r--node_modules/object-inspect/test/quoteStyle.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/node_modules/object-inspect/test/quoteStyle.js b/node_modules/object-inspect/test/quoteStyle.js
deleted file mode 100644
index da23e63..0000000
--- a/node_modules/object-inspect/test/quoteStyle.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-
-var inspect = require('../');
-var test = require('tape');
-
-test('quoteStyle option', function (t) {
- t['throws'](function () { inspect(null, { quoteStyle: false }); }, 'false is not a valid value');
- t['throws'](function () { inspect(null, { quoteStyle: true }); }, 'true is not a valid value');
- t['throws'](function () { inspect(null, { quoteStyle: '' }); }, '"" is not a valid value');
- t['throws'](function () { inspect(null, { quoteStyle: {} }); }, '{} is not a valid value');
- t['throws'](function () { inspect(null, { quoteStyle: [] }); }, '[] is not a valid value');
- t['throws'](function () { inspect(null, { quoteStyle: 42 }); }, '42 is not a valid value');
- t['throws'](function () { inspect(null, { quoteStyle: NaN }); }, 'NaN is not a valid value');
- t['throws'](function () { inspect(null, { quoteStyle: function () {} }); }, 'a function is not a valid value');
-
- t.equal(inspect('"', { quoteStyle: 'single' }), '\'"\'', 'double quote, quoteStyle: "single"');
- t.equal(inspect('"', { quoteStyle: 'double' }), '"\\""', 'double quote, quoteStyle: "double"');
-
- t.equal(inspect('\'', { quoteStyle: 'single' }), '\'\\\'\'', 'single quote, quoteStyle: "single"');
- t.equal(inspect('\'', { quoteStyle: 'double' }), '"\'"', 'single quote, quoteStyle: "double"');
-
- t.equal(inspect('`', { quoteStyle: 'single' }), '\'`\'', 'backtick, quoteStyle: "single"');
- t.equal(inspect('`', { quoteStyle: 'double' }), '"`"', 'backtick, quoteStyle: "double"');
-
- t.end();
-});