Fix TSLint rules
This commit is contained in:
@@ -17,6 +17,7 @@ import { reportCallbackErrors } from '../utils/report_callback_errors';
|
||||
|
||||
chaiSetup.configure();
|
||||
const expect = chai.expect;
|
||||
const DEFAULT_NUM_ACCOUNTS = 10;
|
||||
|
||||
describe('MnemonicWalletSubprovider', () => {
|
||||
let subprovider: MnemonicWalletSubprovider;
|
||||
@@ -32,7 +33,7 @@ describe('MnemonicWalletSubprovider', () => {
|
||||
const accounts = await subprovider.getAccountsAsync();
|
||||
expect(accounts[0]).to.be.equal(fixtureData.TEST_RPC_ACCOUNT_0);
|
||||
expect(accounts[1]).to.be.equal(fixtureData.TEST_RPC_ACCOUNT_1);
|
||||
expect(accounts.length).to.be.equal(10);
|
||||
expect(accounts.length).to.be.equal(DEFAULT_NUM_ACCOUNTS);
|
||||
});
|
||||
it('signs a personal message', async () => {
|
||||
const data = ethUtils.bufferToHex(ethUtils.toBuffer(fixtureData.PERSONAL_MESSAGE_STRING));
|
||||
@@ -89,7 +90,7 @@ describe('MnemonicWalletSubprovider', () => {
|
||||
const callback = reportCallbackErrors(done)((err: Error, response: JSONRPCResponsePayload) => {
|
||||
expect(err).to.be.a('null');
|
||||
expect(response.result[0]).to.be.equal(fixtureData.TEST_RPC_ACCOUNT_0);
|
||||
expect(response.result.length).to.be.equal(10);
|
||||
expect(response.result.length).to.be.equal(DEFAULT_NUM_ACCOUNTS);
|
||||
done();
|
||||
});
|
||||
provider.sendAsync(payload, callback);
|
||||
|
Reference in New Issue
Block a user