build: Initial linting setup (#1560)

* sets up linting config and runs `yarn lint --fix` once, so that all changes will show up correctly in future PRs.

* Note that there are still a lot of linter errors.
This commit is contained in:
Nathan Nichols
2021-08-26 21:22:40 -05:00
committed by Mayukha Vadari
parent 12cfed5c17
commit 8b95ee5fab
286 changed files with 15508 additions and 12691 deletions

View File

@@ -1,26 +1,21 @@
import {assertResultMatch} from '../testUtils'
import responses from '../fixtures/responses'
import signPaymentChannelClaim from '../../src/utils/signPaymentChannelClaim'
import signPaymentChannelClaim from "../../src/utils/signPaymentChannelClaim";
import responses from "../fixtures/responses";
import { assertResultMatch } from "../testUtils";
describe("signPaymentChannelClaim", function () {
it("basic signature matches", function () {
const channel =
"3E18C05AD40319B809520F1A136370C4075321B285217323396D6FD9EE1E9037";
const amount = ".00001";
const privateKey =
"ACCD3309DB14D1A4FC9B1DAE608031F4408C85C73EE05E035B7DC8B25840107A";
const result = signPaymentChannelClaim(channel, amount, privateKey);
describe('signPaymentChannelClaim', function () {
it('basic signature matches', () => {
const channel = "3E18C05AD40319B809520F1A136370C4075321B285217323396D6FD9EE1E9037"
const amount = ".00001"
const privateKey = 'ACCD3309DB14D1A4FC9B1DAE608031F4408C85C73EE05E035B7DC8B25840107A'
const result = signPaymentChannelClaim(
channel,
amount,
privateKey
)
assertResultMatch(
result,
responses.signPaymentChannelClaim,
'signPaymentChannelClaim'
)
})
})
"signPaymentChannelClaim"
);
});
});