Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt emoji for Bitbucket server to fix "Database error has occurred" #645

Merged
merged 5 commits into from Aug 1, 2018
Merged
Diff settings

Always

Just for now

Fix tests

  • Loading branch information...
acecilia committed Aug 1, 2018
commit a06619c96b638b2fe1e5192c7510926c0988df0a
@@ -48,23 +48,23 @@ describe("generating messages for BitBucket server", () => {
describe("generating inline messages", () => {
it("Shows the failing message", () => {
const issues = inlineTemplate("blankID", failsResults, "File.swift", 5)
expect(issues).toContain("- ${noEntryEmoji} Failing message")
expect(issues).not.toContain("- ${warningEmoji}")
expect(issues).not.toContain("- ${messageEmoji}")
expect(issues).toContain(`- ${noEntryEmoji} Failing message`)
expect(issues).not.toContain(`- ${warningEmoji}`)
expect(issues).not.toContain(`- ${messageEmoji}`)
})

it("Shows the warning message", () => {
const issues = inlineTemplate("blankID", warnResults, "File.swift", 5)
expect(issues).toContain("- ${warningEmoji} Warning message")
expect(issues).not.toContain("- ${noEntryEmoji}")
expect(issues).not.toContain("- ${messageEmoji}")
expect(issues).toContain(`- ${warningEmoji} Warning message`)
expect(issues).not.toContain(`- ${noEntryEmoji}`)
expect(issues).not.toContain(`- ${messageEmoji}`)
})

it("Shows the message", () => {
const issues = inlineTemplate("blankID", messagesResults, "File.swift", 5)
expect(issues).toContain("- ${messageEmoji} Message")
expect(issues).not.toContain("- ${noEntryEmoji}")
expect(issues).not.toContain("- ${warningEmoji}")
expect(issues).toContain(`- ${messageEmoji} Message`)
expect(issues).not.toContain(`- ${noEntryEmoji}`)
expect(issues).not.toContain(`- ${warningEmoji}`)
})

it("Shows markdowns one after another", () => {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.