UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.

14 lines (10 loc) 274 B
/* eslint-disable max-nested-callbacks */ import { expect } from 'chai'; import trim from './../src/trim'; describe(`trim`, () => { it(`removes characters matching the regex pattern`, () => { expect(trim(`abc123`, /[0-9]$/g)).to.equal(`abc`); }); });