Skip to content

Commit

Permalink
another test for op object quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 13, 2013
1 parent ac7be63 commit 5819a31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ test('quote', function (t) {

test('quote ops', function (t) {
t.equal(quote([ 'a', { op: '|' }, 'b' ]), 'a \\| b');
t.equal(
quote([ 'a', { op: '&&' }, 'b', { op: ';' }, 'c' ]),
'a \\&\\& b \\; c'
);
t.end();
});

0 comments on commit 5819a31

Please sign in to comment.