mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
Fixed flow issues in tests
This commit is contained in:
@@ -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()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user