Sha256: 90a75bb90b78af5280439aabde87c4f8d9a0dd71562aa2ae1487f2173180b271

Contents?: true

Size: 362 Bytes

Versions: 4

Compression:

Stored size: 362 Bytes

Contents

var test = require('tap').test;
var quote = require('../').quote;

test('quote', function (t) {
    t.equal(quote([ 'a', 'b', 'c d' ]), 'a b \'c d\'');
    t.equal(
        quote([ 'a', 'b', "it's a \"neat thing\"" ]),
        'a b "it\'s a \\"neat thing\\""'
    );
    t.equal(
        quote([ '$', '`', '\'' ]),
        '\\$ \\` "\'"'
    );
    t.end();
});

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/shell-quote/test/quote.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/shell-quote/test/quote.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/shell-quote/test/quote.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/shell-quote/test/quote.js