mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 10:41:06 +01:00
16 lines
457 B
JavaScript
16 lines
457 B
JavaScript
// @flow
|
|
import { gitPredicate } from "./index";
|
|
|
|
describe("test git predicate", () => {
|
|
it("should return false", () => {
|
|
expect(gitPredicate()).toBe(false);
|
|
expect(gitPredicate({})).toBe(false);
|
|
expect(gitPredicate({ repository: {} })).toBe(false);
|
|
expect(gitPredicate({ repository: { type: "hg" } })).toBe(false);
|
|
});
|
|
|
|
it("should return true", () => {
|
|
expect(gitPredicate({ repository: { type: "git" } })).toBe(true);
|
|
});
|
|
});
|