Skip to content

Commit 1c200b3

Browse files
authored
Merge pull request #409 from NEMStudios/400-OpenApiGeneratedLibrary
Open Api Library
2 parents b5ce1df + 912b69e commit 1c200b3

File tree

214 files changed

+583
-19223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+583
-19223
lines changed

e2e/infrastructure/AccountHttp.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,19 @@ describe('AccountHttp', () => {
225225
});
226226
});
227227

228+
describe('transactions', () => {
229+
it('should not return accounts when account does not exist', () => {
230+
return accountRepository.getAccountInfo(Account.generateNewAccount(networkType).address).toPromise().then(r => {
231+
return Promise.reject('should fail!');
232+
}, err => {
233+
const error = JSON.parse(err.message);
234+
expect(error.statusCode).to.be.eq(404);
235+
expect(error.errorDetails.statusMessage).to.be.eq('Not Found');
236+
return Promise.resolve();
237+
});
238+
});
239+
});
240+
228241
describe('transactions', () => {
229242
it('should call transactions successfully', (done) => {
230243
accountRepository.getAccountTransactions(publicAccount.address).subscribe((transactions) => {

0 commit comments

Comments
 (0)