From 7d0e4ff737130be482d903f8f657d40d31b64119 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 3 Oct 2018 12:51:57 -0500 Subject: [PATCH] Add CurrencyInput --- .../components/common/form/ReactMaskedInput.spec.tsx | 10 ++++++++++ javascripts/src/lib/createNumberMask.ts | 1 + 2 files changed, 11 insertions(+) create mode 100644 javascripts/src/components/common/form/ReactMaskedInput.spec.tsx diff --git a/javascripts/src/components/common/form/ReactMaskedInput.spec.tsx b/javascripts/src/components/common/form/ReactMaskedInput.spec.tsx new file mode 100644 index 00000000..8a5df6e5 --- /dev/null +++ b/javascripts/src/components/common/form/ReactMaskedInput.spec.tsx @@ -0,0 +1,10 @@ +// License: LGPL-3.0-or-later +import * as React from 'react'; +import 'jest'; +import ReactMaskedInput from './ReactMaskedInput' + +describe('ReactMaskedInput', () => { + test('your test here', () => { + expect(false).toBe(true) + }) +}) \ No newline at end of file diff --git a/javascripts/src/lib/createNumberMask.ts b/javascripts/src/lib/createNumberMask.ts index 02d5d7d2..08697d9c 100644 --- a/javascripts/src/lib/createNumberMask.ts +++ b/javascripts/src/lib/createNumberMask.ts @@ -1,5 +1,6 @@ // License: Unlicense // from: https://github.com/text-mask/text-mask/pull/760/commits/f66c81b62c4894b7da43862bee5943f659dc7537 + const dollarSign = '$' const emptyString = '' const comma = ','