Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
adding test for routed POST request
Browse files Browse the repository at this point in the history
  • Loading branch information
toschdev committed Apr 5, 2017
1 parent ef38b0b commit 1ca7ef7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/api/liskApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,14 @@ describe('Lisk.api()', function () {
});
});

it('should route the request accordingly if POST can be omited', function (done) {
lisk.api().sendRequest('accounts/open', { secret: '123' }).then(function (result) {
(result).should.be.type('object');
(result.account).should.be.ok;
done();
});
});

it('should be able to use sendRequest as a promise for POST', function (done) {
var options = {
ssl: false,
Expand Down

0 comments on commit 1ca7ef7

Please sign in to comment.