Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit 1b8978d

Browse files
author
Sam Cooke
committed
Fixing lint errors
1 parent 2a72f15 commit 1b8978d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
lib/
22
flow-typed/
33
node_modules/
4+
coverage/

src/components/Redirect/__tests__/testRedirect.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('<Redirect>', () => {
1515
linkMiddleware: [],
1616
location: {},
1717
urls: {
18-
makeLocation({urlName, params, query}) {
18+
makeLocation({urlName, params}) {
1919
expect(urlName).toEqual('user:profile');
2020
expect(params).toEqual({username: 'x'});
2121
return {pathname: "/u/x/", search: '?a=b'};
@@ -39,12 +39,12 @@ describe('<Redirect>', () => {
3939

4040
it('should redirect on mount', () => {
4141
mount(<Redirect urlName="user:profile" params={{username: 'x'}} state={{statevar: 1}} />, {context});
42-
expect(navigate).toBeCalledWith(jasmine.objectContaining({urlName: "user:profile", params:{username: 'x'}, state: {statevar: 1}}), false);
42+
expect(navigate).toBeCalledWith(jasmine.objectContaining({urlName: "user:profile", params: {username: 'x'}, state: {statevar: 1}}), false);
4343
});
4444

4545
it('should replace if instructed', () => {
4646
mount(<Redirect urlName="user:profile" params={{username: 'x'}} state={{statevar: 1}} replace={true} />, {context});
47-
expect(navigate).toBeCalledWith(jasmine.objectContaining({urlName: "user:profile", params:{username: 'x'}, state: {statevar: 1}}), true);
47+
expect(navigate).toBeCalledWith(jasmine.objectContaining({urlName: "user:profile", params: {username: 'x'}, state: {statevar: 1}}), true);
4848
});
4949

5050
it('should update serverResult if provided', () => {

0 commit comments

Comments
 (0)