mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
19 lines
438 B
JavaScript
19 lines
438 B
JavaScript
|
/* jshint expr:true */
|
||
|
import { expect } from 'chai';
|
||
|
import {
|
||
|
describe,
|
||
|
it
|
||
|
} from 'mocha';
|
||
|
import {
|
||
|
highlightedText
|
||
|
} from 'ghost/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');
|
||
|
});
|
||
|
});
|