smartmoney/test/test.ts

11 lines
311 B
TypeScript
Raw Normal View History

2019-07-08 22:44:27 +00:00
// tslint:disable-next-line: no-implicit-dependencies
2019-07-08 22:26:02 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartmoney from '../ts/index';
tap.test('first test', async () => {
2019-07-08 22:43:54 +00:00
const myNumber = smartmoney.parseEuropeanNumberString('1.000,50');
expect(myNumber).to.equal(1000.5);
2019-07-08 22:26:02 +00:00
});
tap.start();