test: coin-support-utils createAccount#436
Conversation
|
| fixtures.valid.forEach(({ name, input, output }) => { | ||
| test(name, () => { | ||
| const result = mapDerivationPath(input); | ||
| expect(result).toStrictEqual(output); | ||
| }); | ||
| }); |
There was a problem hiding this comment.
This needs negative test cases as well
| }); | ||
|
|
||
| test('should create new accounts', done => { | ||
| db.account.getAll.mockResolvedValue([]); |
There was a problem hiding this comment.
We need this test to be configurable. Currently only one test case of this kind can be ran which is hardcoded in __mocks__/createAccountParams
| const observer: Observer<ICreateAccountEvent> = { | ||
| next: value => { | ||
| if (value.type === 'Account') { | ||
| expect(value.account).toBeDefined(); |
There was a problem hiding this comment.
Need to check if we getting the correct result
…dable Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
Co-authored-by: Irshad Ansari <40335357+irshadjsr21@users.noreply.github.com>
No description provided.