diff --git a/test/paymentFormTest.ts b/test/paymentFormTest.ts new file mode 100644 index 0000000..f518998 --- /dev/null +++ b/test/paymentFormTest.ts @@ -0,0 +1,22 @@ +/// +import PaymentFormPage from '../src/pages/payment-form/payment-form' + +describe('Payment Form Page', () => { + var payment: PaymentFormPage; + + beforeEach(function () { + payment = new PaymentFormPage(); + }); + + + describe('#getAmount', () => { + it('should return the same number as string if single digit', () => { + var result : string = payment.getAmount('3'); + if (result !== '3'){ + throw new Error('Expected 3 but was ' + result); + } + }); + + }); + +});