Ghost/ghost/admin/tests/unit/helpers/highlighted-text-test.js
Kevin Ansfield b68f52fe0c Upgrade eslint dependencies (#855)
no issue

- bump ember-cli-eslint and eslint-plugin-ember
- fix indentation & "unnecessary escape chars" lint errors
2017-09-11 14:56:11 +07:00

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');
});
});