mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
b68f52fe0c
no issue - bump ember-cli-eslint and eslint-plugin-ember - fix indentation & "unnecessary escape chars" lint errors
19 lines
448 B
JavaScript
19 lines
448 B
JavaScript
/* jshint expr:true */
|
|
import {
|
|
describe,
|
|
it
|
|
} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {
|
|
highlightedText
|
|
} from 'ghost-admin/helpers/highlighted-text';
|
|
|
|
describe('Unit: Helper: highlighted-text', function() {
|
|
|
|
it('works', function() {
|
|
let result = highlightedText(['Test', 'e']);
|
|
expect(result).to.be.an('object');
|
|
expect(result.string).to.equal('T<span class="highlight">e</span>st');
|
|
});
|
|
});
|