morbo-cli
Version:
… All tech debt is vermin in the eyes of Morbo!
22 lines (20 loc) • 638 B
text/typescript
import removeCommentEnd from './removeCommentEnd';
describe('removeCommentEnd', () => {
it('removes the end of a comment', () => {
expect(removeCommentEnd('/* hi im a comment */')).toBe(
'/* hi im a comment ',
);
expect(removeCommentEnd('<!-- hi im a comment -->')).toBe(
'<!-- hi im a comment ',
);
expect(removeCommentEnd('{{# hi im a comment #}}')).toBe(
'{{# hi im a comment ',
);
expect(removeCommentEnd('{{-- hi im a comment --}}')).toBe(
'{{-- hi im a comment ',
);
expect(removeCommentEnd('{{ hi im a comment }}')).toBe(
'{{ hi im a comment ',
);
});
});