package.dist.createIssue.test.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of patch-package Show documentation
Show all versions of patch-package Show documentation
Fix broken node modules with no fuss
The newest version!
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const createIssue_1 = require("./createIssue");
describe(createIssue_1.shouldRecommendIssue, () => {
it("Allows most repos", () => {
const eigen = createIssue_1.shouldRecommendIssue({
org: "artsy",
repo: "eigen",
provider: "GitHub",
});
expect(eigen).toBeTruthy();
const typescript = createIssue_1.shouldRecommendIssue({
org: "Microsoft",
repo: "TypeScript",
provider: "GitHub",
});
expect(typescript).toBeTruthy();
});
it("does not recommend DefinitelyTyped", () => {
const typescript = createIssue_1.shouldRecommendIssue({
org: "DefinitelyTyped",
repo: "DefinitelyTyped",
provider: "GitHub",
});
expect(typescript).toBeFalsy();
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlSXNzdWUudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVJc3N1ZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW9EO0FBRXBELFFBQVEsQ0FBQyxrQ0FBb0IsRUFBRSxHQUFHLEVBQUU7SUFDbEMsRUFBRSxDQUFDLG1CQUFtQixFQUFFLEdBQUcsRUFBRTtRQUMzQixNQUFNLEtBQUssR0FBRyxrQ0FBb0IsQ0FBQztZQUNqQyxHQUFHLEVBQUUsT0FBTztZQUNaLElBQUksRUFBRSxPQUFPO1lBQ2IsUUFBUSxFQUFFLFFBQVE7U0FDbkIsQ0FBQyxDQUFBO1FBQ0YsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLFVBQVUsRUFBRSxDQUFBO1FBRTFCLE1BQU0sVUFBVSxHQUFHLGtDQUFvQixDQUFDO1lBQ3RDLEdBQUcsRUFBRSxXQUFXO1lBQ2hC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