Skip to content

Commit

Permalink
fix: header CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
blackxored committed Nov 15, 2017
1 parent c1fbd02 commit 40e6df8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/__tests__/__snapshots__/formatMessage.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@
exports[`formatMessage returns a list of strings suitable for console logging 1`] = `
Array [
"%c apollo %cquery %cFormatMessageQuery %c(in 1000 ms)",
"color: gray; font-weight: lighter",
"color: #03A9F4;",
"color: #000;",
"color: gray; font-weight: lighter;",
]
`;

exports[`formatMessage returns a list of strings suitable for console logging 2`] = `
Array [
"%c apollo %cmutation %cFormatMessageMutation %c(in 500 ms)",
"color: gray; font-weight: lighter",
"color: red;",
"color: #000;",
"color: gray; font-weight: lighter;",
]
`;
2 changes: 1 addition & 1 deletion src/formatMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const formatMessage = (operationType, operation, ellapsed) => {
parts.push(`%c${operation.operationName}`);
parts.push(`%c(in ${ellapsed} ms)`);

return [parts.join(' ', ...headerCss)];
return [parts.join(' '), ...headerCss];
};

module.exports = formatMessage;

0 comments on commit 40e6df8

Please sign in to comment.