incorporate phraseanet-production-client into phraseanet

This commit is contained in:
aina esokia
2020-09-25 18:28:43 +03:00
parent 7df5e99c54
commit abc137bbe6
282 changed files with 66346 additions and 3020 deletions

View File

@@ -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')
});
});
});