Fix wrong extension for a test file (#29853)
This commit is contained in:
parent
c7378218ba
commit
906a399634
1 changed files with 3 additions and 1 deletions
12
app/javascript/mastodon/utils/__tests__/html-test.ts
Normal file
12
app/javascript/mastodon/utils/__tests__/html-test.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import * as html from '../html';
|
||||
|
||||
describe('html', () => {
|
||||
describe('unescapeHTML', () => {
|
||||
it('returns unescaped HTML', () => {
|
||||
const output = html.unescapeHTML(
|
||||
'<p>lorem</p><p>ipsum</p><br><br>',
|
||||
);
|
||||
expect(output).toEqual('lorem\n\nipsum\n<br>');
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue