mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
apply eslint and prettier rules
This commit is contained in:
@@ -41,25 +41,13 @@ describe("binder tests", () => {
|
||||
});
|
||||
|
||||
type Props = {
|
||||
category: string
|
||||
category: string;
|
||||
};
|
||||
|
||||
it("should return only extensions which predicates matches", () => {
|
||||
binder.bind(
|
||||
"hitchhicker.trillian",
|
||||
"heartOfGold",
|
||||
(props: Props) => props.category === "a"
|
||||
);
|
||||
binder.bind(
|
||||
"hitchhicker.trillian",
|
||||
"earth",
|
||||
(props: Props) => props.category === "b"
|
||||
);
|
||||
binder.bind(
|
||||
"hitchhicker.trillian",
|
||||
"earth2",
|
||||
(props: Props) => props.category === "a"
|
||||
);
|
||||
binder.bind("hitchhicker.trillian", "heartOfGold", (props: Props) => props.category === "a");
|
||||
binder.bind("hitchhicker.trillian", "earth", (props: Props) => props.category === "b");
|
||||
binder.bind("hitchhicker.trillian", "earth2", (props: Props) => props.category === "a");
|
||||
|
||||
const extensions = binder.getExtensions("hitchhicker.trillian", {
|
||||
category: "b"
|
||||
|
||||
Reference in New Issue
Block a user