Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
fix several codefactor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubelrti committed Jan 14, 2018
1 parent bb8144a commit 5debdc4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/Obsidian/Scripts/__tests__/UserContainers.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ test("handle submit function get called", () => {
test("forms get right input from users", () => {
const input = userForm.find('[name="username"]').first();
input.simulate("change", { target: { value: "User #1" } });
expect(mockChange.mock.calls[0][0]["target"]).toEqual({ value: "User #1" });
const targetStr = "target";
expect(mockChange.mock.calls[0][0][targetStr]).toEqual({ value: "User #1" });
});

test("containers received new state", () => {
Expand Down
3 changes: 1 addition & 2 deletions src/Obsidian/Scripts/components/List.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from "react";
import { CSSProperties } from "react";
import { Motion, spring } from "react-motion";
import { Link } from "react-router";

Expand Down Expand Up @@ -40,7 +39,7 @@ export const List = (props: IListProps) => (

export const Item = (props: IListProps) => (
<Motion defaultStyle={{ opacity: 0 }} style={{ opacity: spring(1) }}>
{(style: CSSProperties) =>
{(style: React.CSSProperties) =>
(
<div>
<div style={style} className="list-group-item">
Expand Down
12 changes: 6 additions & 6 deletions src/Obsidian/Scripts/containers/FormContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import * as React from "react";
import * as api from "../configs/GlobalSettings";

export interface IFormProps {
token: string;
location?: {
query: {
id: string;
username: string;
};
token: string;
location?: {
query: {
id: string;
username: string;
};
};
filter?: string;
push?(reason: string, error?: string): void;
Expand Down

0 comments on commit 5debdc4

Please sign in to comment.