mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
96c855136c
refs #6458
18 lines
438 B
JavaScript
18 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');
|
|
});
|
|
});
|