mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
incorporate phraseanet-production-client into phraseanet
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import * as utils from '../../../src/components/utils/utils';
|
||||
|
||||
|
||||
describe('Utils Component', () => {
|
||||
it('is available', () => {
|
||||
expect(utils).not.to.be.null;
|
||||
});
|
||||
describe('escapeHtml method', () => {
|
||||
it('is available', () => {
|
||||
expect(utils.escapeHtml).not.to.be.null;
|
||||
});
|
||||
it('transform a simple phrase', () => {
|
||||
const simplePhrase = 'hello world';
|
||||
expect(utils.escapeHtml(simplePhrase)).to.eql(simplePhrase)
|
||||
});
|
||||
it('transform html entities', () => {
|
||||
const simplePhrase = 'hello & world';
|
||||
expect(utils.escapeHtml(simplePhrase)).to.eql('hello & world')
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user