We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3add22 commit f54e73cCopy full SHA for f54e73c
src/core.js
@@ -27,8 +27,17 @@ function defaultTitleFormatter(options) {
27
timestamp, duration,
28
} = options;
29
30
- return (action, time, took) =>
31
- `action @ ${timestamp ? time : ``} ${action.type} ${duration ? `(in ${took.toFixed(2)} ms)` : ``}`;
+ return (action, time, took) => {
+ const parts = [`action`];
32
+ if (timestamp) {
33
+ parts.push(`@ ${time}`);
34
+ }
35
+ parts.push(action.type);
36
+ if (duration) {
37
+ parts.push(`(in ${took.toFixed(2)} ms)`);
38
39
+ return parts.join(` `);
40
+ };
41
}
42
43
export function printBuffer(buffer, options) {
0 commit comments