it("should retrieve account informations WITH all arguments to true", () => { expect(client.account_info(WALLET_ADDRESS, true, true, true)) .to.eventually.contain('"frontier"') .and.to.eventually.contain('"open_block"') .and.to.eventually.contain('"representative_block"') .and.to.eventually.contain('"balance"') .and.to.eventually.contain('"modified_timestamp"') .and.to.eventually.contain('"block_count"') .and.to.eventually.contain('"representative"') .and.to.eventually.contain('"weight"') .and.to.eventually.contain('"pending"') .notify(done); });
it("should retrieve account informations WITHOUT arguments", () => { expect(client.account_info(WALLET_ADDRESS)) .to.eventually.contain('"frontier"') .and.to.eventually.contain('"open_block"') .and.to.eventually.contain('"representative_block"') .and.to.eventually.contain('"balance"') .and.to.eventually.contain('"modified_timestamp"') .and.to.eventually.contain('"block_count"'); });
it("should retrieve account informations WITH representative", () => { expect(client.account_info(WALLET_ADDRESS, true)) .to.eventually.contain('"frontier"') .and.to.eventually.contain('"open_block"') .and.to.eventually.contain('"representative_block"') .and.to.eventually.contain('"balance"') .and.to.eventually.contain('"modified_timestamp"') .and.to.eventually.contain('"block_count"') .and.to.eventually.contain('"representative"') .notify(done); });
it("should retrieve account informations WITH voting weight", () => { expect(client.account_info(WALLET_ADDRESS, false, true)) .to.eventually.contain('"frontier"') .and.to.eventually.contain('"open_block"') .and.to.eventually.contain('"representative_block"') .and.to.eventually.contain('"balance"') .and.to.eventually.contain('"modified_timestamp"') .and.to.eventually.contain('"block_count"') .and.to.eventually.contain('"weight"') .notify(done); });
it("should retrieve account informations WITH pending balance", () => { expect(client.account_info(WALLET_ADDRESS, false, false, true)) .to.eventually.contain('"frontier"') .and.to.eventually.contain('"open_block"') .and.to.eventually.contain('"representative_block"') .and.to.eventually.contain('"balance"') .and.to.eventually.contain('"modified_timestamp"') .and.to.eventually.contain('"block_count"') .and.to.eventually.contain('"pending"') .notify(done); });