import { context, describe, it } from '@ephox/bedrock-client';
import { Unicode } from '@ephox/katamari';
import { assert } from 'chai';
import * as Html from 'tinymce/plugins/visualchars/core/Html';
describe('atomic.tinymce.plugins.visualchars.HtmlTest', () => {
context('wrapCharWithSpan', () => {
it('should return correct span with nbsp', () => {
assert.equal(
'' + Unicode.nbsp + '',
Html.wrapCharWithSpan(Unicode.nbsp)
);
});
it('should return correct span with soft hyphen', () => {
assert.equal(
'' + Unicode.softHyphen + '',
Html.wrapCharWithSpan(Unicode.softHyphen)
);
});
});
});