Changeset 0c6b92a for imaps-frontend/node_modules/object-inspect/test
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/object-inspect/test/quoteStyle.js
rd565449 r0c6b92a 14 14 t['throws'](function () { inspect(null, { quoteStyle: function () {} }); }, 'a function is not a valid value'); 15 15 16 t.equal(inspect('"', { quoteStyle: 'single' }), '\'"\'', 'double quote, quoteStyle: "single"'); 17 t.equal(inspect('"', { quoteStyle: 'double' }), '"\\""', 'double quote, quoteStyle: "double"'); 18 19 t.equal(inspect('\'', { quoteStyle: 'single' }), '\'\\\'\'', 'single quote, quoteStyle: "single"'); 20 t.equal(inspect('\'', { quoteStyle: 'double' }), '"\'"', 'single quote, quoteStyle: "double"'); 21 22 t.equal(inspect('`', { quoteStyle: 'single' }), '\'`\'', 'backtick, quoteStyle: "single"'); 23 t.equal(inspect('`', { quoteStyle: 'double' }), '"`"', 'backtick, quoteStyle: "double"'); 24 16 25 t.end(); 17 26 });
Note:
See TracChangeset
for help on using the changeset viewer.