Sha256: abcbff1298cd64ba2486e8ec269e8bbed400c320ca04e4b646d95ade1d9c07f4

Contents?: true

Size: 933 Bytes

Versions: 75

Compression:

Stored size: 933 Bytes

Contents

'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.end();
});

Version data entries

75 entries across 74 versions & 11 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.59 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.58 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.57 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.56 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.55 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.54 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.53 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.52 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.51 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.50 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.49 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.48 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.47 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.46 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.45 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.44 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.43 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.42 node_modules/object-inspect/test/quoteStyle.js
immosquare-cleaner-0.1.41 node_modules/object-inspect/test/quoteStyle.js