a85f5fae35
no issue - fix lint errors in lib/gh-koenig - fix ghost:base eslint errors - update ember plugin refs, remove ember-suave plugin refs - remove old jshint refs - add `lint:js` script - switch to `eslint-plugin-ghost` extending `plugin:ghost/ember`
17 lines
426 B
JavaScript
17 lines
426 B
JavaScript
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');
|
|
});
|
|
});
|