Commit 6fd90c56 authored by Robert Knight's avatar Robert Knight

Add test case to check quotes are treated as text rather than HTML

parent 4e6e9734
......@@ -989,5 +989,15 @@ describe('annotation', function() {
assert.equal(controller.links().html, '');
});
});
it('renders quotes as plain text', function () {
var ann = fixtures.defaultAnnotation();
ann.target[0].selector = [{
type: 'TextQuoteSelector',
exact: '<<-&->>',
}];
var el = createDirective(ann).element;
assert.equal(el[0].querySelector('blockquote').textContent, '<<-&->>');
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment