mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
Fix pipes spec
This commit is contained in:
parent
31bdc657af
commit
38f642dbb8
|
@ -85,12 +85,12 @@ describe('Pipes', () => {
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
unmarked = 'test\n';
|
unmarked = 'test\n';
|
||||||
marked = '<p>test</p>\n';
|
marked = '<span class="redoc-markdown-block"><p>test</p>\n</span>';
|
||||||
pipe = new MarkedPipe();
|
pipe = new MarkedPipe();
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('MarkedPipe transform', () => {
|
describe('MarkedPipe transform', () => {
|
||||||
it('should escpae pointer', () => {
|
it('should wrap in markdown span', () => {
|
||||||
var val = pipe.transform(unmarked);
|
var val = pipe.transform(unmarked);
|
||||||
val.should.be.equal(marked);
|
val.should.be.equal(marked);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user