Skip to content

Commit

Permalink
Additional unit test for #14
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodelabre committed Dec 17, 2020
1 parent 1aff30c commit 867802b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/static/attrs.test.js
Expand Up @@ -14,6 +14,16 @@ test('should parse tag attributes', assert => {
assert.end();
});

test('should parse attributes values containing ">"', assert => {
assert.deepEqual(
Saxophone.parseAttrs(' assert="5 > 1" '),
{
assert: '5 > 1',
}
);
assert.end();
});

test('should not parse attributes without a value', assert => {
assert.throws(() => {
Saxophone.parseAttrs(' first');
Expand Down

0 comments on commit 867802b

Please sign in to comment.