mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00

* JIRA refactors * Support JIRA onprem * Fix webhooks * More JIRA docs --- PLEASE REWRITE MEEEE --- * Drop manifest code for now * Add on-prem instructions * Remove incomplete command * Update sample config * Remove null url
19 lines
712 B
TypeScript
19 lines
712 B
TypeScript
import { expect } from "chai";
|
|
import { generateJiraWebLinkFromIssue } from "../../src/Jira";
|
|
|
|
describe("Jira", () => {
|
|
describe("Utils", () => {
|
|
it("processes a jira issue into a URL", () => {
|
|
expect(generateJiraWebLinkFromIssue({
|
|
self: "https://my-test-jira/",
|
|
key: "TEST-111",
|
|
})).to.equal("https://my-test-jira/browse/TEST-111");
|
|
});
|
|
it("processes a jira issue into a URL with a port", () => {
|
|
expect(generateJiraWebLinkFromIssue({
|
|
self: "https://my-test-jira:9995/",
|
|
key: "TEST-111",
|
|
})).to.equal("https://my-test-jira:9995/browse/TEST-111");
|
|
});
|
|
});
|
|
}); |