Fixed flow issues in tests

This commit is contained in:
Philipp Czora
2018-11-07 16:42:26 +01:00
parent e322a1a80b
commit e5dcae6874
6 changed files with 50 additions and 20 deletions

View File

@@ -11,6 +11,9 @@ describe("RepositoryNavLink", () => {
it("should render nothing, if the sources link is missing", () => {
const repository = {
namespace: "Namespace",
name: "Repo",
type: "GIT",
_links: {}
};
@@ -20,6 +23,7 @@ describe("RepositoryNavLink", () => {
linkName="sources"
to="/sources"
label="Sources"
activeOnlyWhenExact={true}
/>,
options.get()
);
@@ -28,6 +32,9 @@ describe("RepositoryNavLink", () => {
it("should render the navLink", () => {
const repository = {
namespace: "Namespace",
name: "Repo",
type: "GIT",
_links: {
sources: {
href: "/sources"
@@ -41,6 +48,7 @@ describe("RepositoryNavLink", () => {
linkName="sources"
to="/sources"
label="Sources"
activeOnlyWhenExact={true}
/>,
options.get()
);