-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1494 from skaut/prettier-normalization
Removed custom prettier configuration from frontend
- Loading branch information
Showing
59 changed files
with
573 additions
and
592 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const filename = "test-file-stub" | ||
export default filename | ||
const filename = "test-file-stub"; | ||
export default filename; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
import renderer from "react-test-renderer" | ||
import renderer from "react-test-renderer"; | ||
|
||
import { Button } from "../../src/components/Button" | ||
import { Button } from "../../src/components/Button"; | ||
|
||
describe("Button component", () => { | ||
test("should render correctly", () => { | ||
const tree = renderer | ||
.create(<Button href="http://www.somewhere.com">Link somewhere</Button>) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
test("should render correctly with title", () => { | ||
const tree = renderer | ||
.create( | ||
<Button href="http://www.somewhere.com" title="myTitle"> | ||
Link somewhere | ||
</Button> | ||
</Button>, | ||
) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
test("should render correctly with custom class", () => { | ||
const tree = renderer | ||
.create( | ||
<Button className="myClassName" href="http://www.somewhere.com"> | ||
Link somewhere | ||
</Button> | ||
</Button>, | ||
) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
test("should render correctly with target self", () => { | ||
const tree = renderer | ||
.create( | ||
<Button href="http://www.somewhere.com" targetSelf> | ||
Link somewhere | ||
</Button> | ||
</Button>, | ||
) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import renderer from "react-test-renderer" | ||
import renderer from "react-test-renderer"; | ||
|
||
import { ColoredTag } from "../../src/components/ColoredTag" | ||
import { ColoredTag } from "../../src/components/ColoredTag"; | ||
|
||
describe("ColoredTag component", () => { | ||
test("should render correctly", () => { | ||
const tree = renderer.create(<ColoredTag>Tag</ColoredTag>).toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
}) | ||
const tree = renderer.create(<ColoredTag>Tag</ColoredTag>).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
import renderer from "react-test-renderer" | ||
import renderer from "react-test-renderer"; | ||
|
||
import { ExtLink } from "../../src/components/ExtLink" | ||
import { ExtLink } from "../../src/components/ExtLink"; | ||
|
||
describe("ExtLink component", () => { | ||
test("should render correctly", () => { | ||
const tree = renderer | ||
.create(<ExtLink href="http://www.somewhere.com">Link somewhere</ExtLink>) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
test("should render correctly with title", () => { | ||
const tree = renderer | ||
.create( | ||
<ExtLink href="http://www.somewhere.com" title="myTitle"> | ||
Link somewhere | ||
</ExtLink> | ||
</ExtLink>, | ||
) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
test("should render correctly with custom class", () => { | ||
const tree = renderer | ||
.create( | ||
<ExtLink className="myClassName" href="http://www.somewhere.com"> | ||
Link somewhere | ||
</ExtLink> | ||
</ExtLink>, | ||
) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
test("should render correctly with target self", () => { | ||
const tree = renderer | ||
.create( | ||
<ExtLink href="http://www.somewhere.com" targetSelf> | ||
Link somewhere | ||
</ExtLink> | ||
</ExtLink>, | ||
) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
import { MemoryRouter } from "react-router-dom" | ||
import renderer from "react-test-renderer" | ||
import { MemoryRouter } from "react-router-dom"; | ||
import renderer from "react-test-renderer"; | ||
|
||
import { Issue } from "../../src/components/Issue" | ||
import { getIssueWithProject } from "../../src/utils/getIssueWithProject" | ||
import { testData } from "../testData" | ||
import { Issue } from "../../src/components/Issue"; | ||
import { getIssueWithProject } from "../../src/utils/getIssueWithProject"; | ||
import { testData } from "../testData"; | ||
|
||
const project = testData.projects[0] | ||
const issue = project.issues[0] | ||
const project = testData.projects[0]; | ||
const issue = project.issues[0]; | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Checked in the test | ||
const issueWithProject = getIssueWithProject( | ||
testData, | ||
project.owner, | ||
project.repo, | ||
issue.number | ||
)! | ||
issue.number, | ||
)!; | ||
|
||
describe("Issue component", () => { | ||
test("should render correctly", () => { | ||
expect(issue).not.toBeNull() | ||
expect(issue).not.toBeNull(); | ||
const tree = renderer | ||
.create( | ||
<MemoryRouter> | ||
<Issue issue={issueWithProject} /> | ||
</MemoryRouter> | ||
</MemoryRouter>, | ||
) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
test("should render correctly without tags", () => { | ||
const tree = renderer | ||
.create( | ||
<MemoryRouter> | ||
<Issue hideTags issue={issueWithProject} /> | ||
</MemoryRouter> | ||
</MemoryRouter>, | ||
) | ||
.toJSON() | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
}) | ||
.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
}); |
Oops, something went wrong.