UNPKG

simple-text

Version:

![npm](https://img.shields.io/npm/v/simple-text.svg) ![license](https://img.shields.io/npm/l/simple-text.svg) ![github-issues](https://img.shields.io/github/issues/wspecs/simple-text.svg)

19 lines (15 loc) 450 B
import * as lib from '../lib/utils'; import { expect } from 'chai'; describe('word parser', () => { beforeEach(() => { // Set up before running tests. }); it('initializes', () => { expect(lib.simplify('à la mode')).to.equal('a la mode'); }); it('simplifies all keys', () => { for (const key of Object.keys(lib.REPLACE_MAP)) { expect(lib.simplify(key)).to.equal(lib.REPLACE_MAP[key]); } }); });