Skip to content

Commit

Permalink
fix(schema:check): use backticks for service name and schema tag in m…
Browse files Browse the repository at this point in the history
…d output
  • Loading branch information
justinanastos committed Apr 3, 2019
1 parent df91fba commit c4a1534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/apollo/src/commands/service/__tests__/check.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("service:check", () => {
).toMatchInlineSnapshot(`
"
### Apollo Service Check
🔄 Validated your local schema against schema tag 'staging' on service 'engine'.
🔄 Validated your local schema against schema tag \`staging\` on service \`engine\`.
🔢 Compared **18 schema changes** against **100 operations** seen over the **last 24 hours**.
❌ Found **7 breaking changes** that would affect **3 operations** across **2 clients**
Expand Down Expand Up @@ -64,7 +64,7 @@ describe("service:check", () => {
).toMatchInlineSnapshot(`
"
### Apollo Service Check
🔄 Validated your local schema against schema tag 'staging' on service 'engine'.
🔄 Validated your local schema against schema tag \`staging\` on service \`engine\`.
🔢 Compared **1 schema change** against **1 operation** seen over the **last 24 hours**.
❌ Found **1 breaking change** that would affect **1 operation** across **1 client**
Expand Down Expand Up @@ -92,7 +92,7 @@ describe("service:check", () => {
).toMatchInlineSnapshot(`
"
### Apollo Service Check
🔄 Validated your local schema against schema tag 'staging' on service 'engine'.
🔄 Validated your local schema against schema tag \`staging\` on service \`engine\`.
🔢 Compared **0 schema changes** against **100 operations** seen over the **last 24 hours**.
✅ Found **no breaking changes**.
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo/src/commands/service/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function formatMarkdown({

return `
### Apollo Service Check
🔄 Validated your local schema against schema tag \'${tag}\' on service \'${serviceName}\'.
🔄 Validated your local schema against schema tag \`${tag}\` on service \`${serviceName}\`.
🔢 Compared **${pluralize(
diffToPrevious.changes.length,
"schema change"
Expand Down

0 comments on commit c4a1534

Please sign in to comment.