Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions e2e/infrastructure/AccountHttp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,19 @@ describe('AccountHttp', () => {
});
});

describe('transactions', () => {
it('should not return accounts when account does not exist', () => {
return accountRepository.getAccountInfo(Account.generateNewAccount(networkType).address).toPromise().then(r => {
return Promise.reject('should fail!');
}, err => {
const error = JSON.parse(err.message);
expect(error.statusCode).to.be.eq(404);
expect(error.errorDetails.statusMessage).to.be.eq('Not Found');
return Promise.resolve();
});
});
});

describe('transactions', () => {
it('should call transactions successfully', (done) => {
accountRepository.getAccountTransactions(publicAccount.address).subscribe((transactions) => {
Expand Down
Loading