Commit c147a939 authored by Ben Hayward's avatar Ben Hayward

Added test

1 merge request!415[Sprint/InterestingIguana](BUG) Fix period char username fix #1481
Pipeline #69288005 canceled with stages
in 36 seconds
......@@ -87,6 +87,13 @@ describe('TagPipe', () => {
expect(transformedString).toContain('@name.com');
});
fit('should transform two adjacent tags', () => {
const pipe = new TagsPipe(featuresServiceMock);
const string = '@test1 @test2';
const transformedString = pipe.transform(<any>string);
expect(transformedString).toEqual('<a class="tag" href="/test1" target="_blank">@test1</a> <a class="tag" href="/test2" target="_blank">@test2</a>');
});
it('should transform to an email', () => {
const pipe = new TagsPipe(featuresServiceMock);
const string = 'textstring@name.com';
......
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