Skip to content

Commit

Permalink
Merge pull request #11 from hanneskaeufler/hk-italic-source
Browse files Browse the repository at this point in the history
Hk italic source
  • Loading branch information
hanneskaeufler authored Mar 3, 2018
2 parents d51c818 + 501b57f commit df3e693
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dangerfile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { danger, message } from "danger"
import { danger, message, warn } from "danger"
import mentor from "danger-plugin-mentor"

if (!danger.github.pr.body) {
warn("Please add a PR description.")
}

mentor()
2 changes: 1 addition & 1 deletion src/tip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("Tip", () => {
it("concats the text and the source", () => {
const tip = new Tip("A tip with a source.", new URL("http://example.com"), [])

expect(tip.toMarkdown()).toEqual("A tip with a source. Source: [http://example.com/](http://example.com/)")
expect(tip.toMarkdown()).toEqual("A tip with a source. [Source](http://example.com/)")
})
})
})
2 changes: 1 addition & 1 deletion src/tip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default class Tip {
}

toMarkdown(): string {
return `${this.text} Source: [${this.source}](${this.source})`
return `${this.text} [Source](${this.source})`
}
}

0 comments on commit df3e693

Please sign in to comment.