> npm t
> [email protected] test
> jest test
PASS test/entities/feedItem.spec.js
PASS test/entities/accountHolder.spec.js
FAIL test/entities/account.spec.js
● Account › should download CSV statement for period
expect(received).toBe(expected) // Object.is equality
Expected: "Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category"
"eceived: "Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category
154 |
155 | expect(lines).toHaveLength(4)
> 156 | expect(lines[0]).toBe('Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category')
| ^
157 | expect(lines[1]).toBe('01/10/2019,An Employer,SALARY,FASTER PAYMENT,1500.00,5500.00,INCOME')
158 | expect(lines[2]).toBe('02/10/2019,Landlord,Rent,FASTER PAYMENT,-1000.00,4500.00,PAYMENTS')
159 | expect(lines[3]).toBe('')
at test/entities/account.spec.js:156:26
● Account › should download CSV statement for period with optional parameters removed
expect(received).toBe(expected) // Object.is equality
Expected: "Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category"
"eceived: "Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category
172 |
173 | expect(lines).toHaveLength(4)
> 174 | expect(lines[0]).toBe('Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category')
| ^
175 | expect(lines[1]).toBe('01/10/2019,An Employer,SALARY,FASTER PAYMENT,1500.00,5500.00,INCOME')
176 | expect(lines[2]).toBe('02/10/2019,Landlord,Rent,FASTER PAYMENT,-1000.00,4500.00,PAYMENTS')
177 | expect(lines[3]).toBe('')
at test/entities/account.spec.js:174:26
● Account › should download CSV statement for range
expect(received).toBe(expected) // Object.is equality
Expected: "Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category"
"eceived: "Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category
190 |
191 | expect(lines).toHaveLength(4)
> 192 | expect(lines[0]).toBe('Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category')
| ^
193 | expect(lines[1]).toBe('01/10/2019,An Employer,SALARY,FASTER PAYMENT,1500.00,5500.00,INCOME')
194 | expect(lines[2]).toBe('02/10/2019,Landlord,Rent,FASTER PAYMENT,-1000.00,4500.00,PAYMENTS')
195 | expect(lines[3]).toBe('')
at test/entities/account.spec.js:192:26
● Account › should download CSV statement for range with optional parameters removed
expect(received).toBe(expected) // Object.is equality
Expected: "Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category"
"eceived: "Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category
208 |
209 | expect(lines).toHaveLength(4)
> 210 | expect(lines[0]).toBe('Date,Counter Party,Reference,Type,Amount (GBP),Balance (GBP),Spending Category')
| ^
211 | expect(lines[1]).toBe('01/10/2019,An Employer,SALARY,FASTER PAYMENT,1500.00,5500.00,INCOME')
212 | expect(lines[2]).toBe('02/10/2019,Landlord,Rent,FASTER PAYMENT,-1000.00,4500.00,PAYMENTS')
213 | expect(lines[3]).toBe('')
at test/entities/account.spec.js:210:26
PASS test/entities/savingsGoals.spec.js
PASS test/entities/card.spec.js
PASS test/entities/payee.spec.js
PASS test/entities/payment.spec.js
PASS test/oauth.spec.js
PASS test/entities/identity.spec.js
PASS test/entities/address.spec.js
PASS test/utils/validator.spec.js
PASS test/entities/mandate.spec.js
PASS test/starling.spec.js
Test Suites: 1 failed, 12 passed, 13 total
Tests: 4 failed, 64 passed, 68 total
Snapshots: 0 total
Time: 6.472 s
Ran all test suites matching /test/i.