Converted app/javascript/mastodon/utils/ folder to TypeScript (#27895)
This commit is contained in:
parent
cdc7894243
commit
1142f4c79e
14 changed files with 84 additions and 75 deletions
10
app/javascript/mastodon/utils/__tests__/html-test.s
Normal file
10
app/javascript/mastodon/utils/__tests__/html-test.s
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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