expectTable.js 256 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 import { expect } from 'chai'; import _ from 'lodash'; /** * @param {string} result * @param {string} expectedResult * @returns {undefined} */ export default (result, expectedResult) => { expect(result).to.equal(_.trim(expectedResult) + '\n'); };