/var/www/myprog.com.ua/server/node/node_modules/object-inspect/test
NameSizeModeActions
browser/-0755rm
bigint.js20820644editdlrm
circular.js4510644editdlrm
deep.js4000644editdlrm
element.js15750644editdlrm
err.js15360644editdlrm
fakes.js6830644editdlrm
fn.js22270644editdlrm
global.js3720644editdlrm
has.js5140644editdlrm
holes.js2550644editdlrm
indent-option.js66330644editdlrm
inspect.js49460644editdlrm
lowbyte.js2680644editdlrm
number.js23120644editdlrm
quoteStyle.js15300644editdlrm
toStringTag.js15460644editdlrm
undef.js3020644editdlrm
values.js84070644editdlrm
Edit: /var/www/myprog.com.ua/server/node/node_modules/object-inspect/test/quoteStyle.js (1530B)
'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(); });