Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Fix TypeScript build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
veado committed Apr 21, 2020
1 parent 4238841 commit bfddbe9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/e2e/HomePage.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { getPageUrl } from './helpers';

const getPageTitle = ClientFunction(() => document.title);
const connectSelector = Selector('[data-tid="connect"]');
const clickToConnectLink = (t) =>
const clickToConnectLink = (t: TestController) =>
t.click(Selector('a').withExactText('Connect Wallet'));
const getConnectText = () => connectSelector().innerText;
const assertNoConsoleErrors = async (t) => {
const assertNoConsoleErrors = async (t: TestController) => {
const { error } = await t.getBrowserConsoleMessages();
await t.expect(error).eql([]);
};
Expand Down
2 changes: 1 addition & 1 deletion test/reducers/counter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
describe('reducers', () => {
describe('counter', () => {
it('should handle initial state', () => {
expect(counter(undefined, {})).toMatchSnapshot();
expect(counter(undefined, { type: '' })).toMatchSnapshot();
});

it('should handle INCREMENT_COUNTER', () => {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"target": "ES2018",
"module": "CommonJS",
"lib": ["dom", "esnext"],
"skipLibCheck": true,
"declaration": true,
"declarationMap": true,
"noEmit": true,
Expand Down

0 comments on commit bfddbe9

Please sign in to comment.