diff --git a/devtools/client/shared/components/reps/grip.js b/devtools/client/shared/components/reps/grip.js index e6b8e187b9088..44cc39ad03299 100644 --- a/devtools/client/shared/components/reps/grip.js +++ b/devtools/client/shared/components/reps/grip.js @@ -34,7 +34,7 @@ define(function (require, exports, module) { if (this.props.objectLink) { return this.props.objectLink({ object: object - }, object.class + " "); + }, object.class); } return object.class || "Object"; }, diff --git a/devtools/client/shared/components/reps/object.js b/devtools/client/shared/components/reps/object.js index c58e6a305ffa8..9ff3e908c1ba0 100644 --- a/devtools/client/shared/components/reps/object.js +++ b/devtools/client/shared/components/reps/object.js @@ -30,7 +30,7 @@ define(function (require, exports, module) { if (this.props.objectLink) { return this.props.objectLink({ object: object - }, object.class + " "); + }, object.class); } return "Object"; }, diff --git a/devtools/client/shared/components/reps/stylesheet.js b/devtools/client/shared/components/reps/stylesheet.js index 77372deece88a..c1fc7f1be2195 100644 --- a/devtools/client/shared/components/reps/stylesheet.js +++ b/devtools/client/shared/components/reps/stylesheet.js @@ -32,7 +32,7 @@ define(function (require, exports, module) { return DOM.span({className: "objectBox"}, this.props.objectLink({ object: grip - }, title + " ") + }, title) ); } return title; diff --git a/devtools/client/webconsole/new-console-output/test/components/evaluation-result.test.js b/devtools/client/webconsole/new-console-output/test/components/evaluation-result.test.js index ba0ee34a4bbfd..72b8abe638615 100644 --- a/devtools/client/webconsole/new-console-output/test/components/evaluation-result.test.js +++ b/devtools/client/webconsole/new-console-output/test/components/evaluation-result.test.js @@ -20,7 +20,7 @@ describe("EvaluationResult component:", () => { const rendered = renderComponent(EvaluationResult, props); const messageBody = getMessageBody(rendered); - expect(messageBody.textContent).toBe("Date1970-01-01T00:00:00.000Z"); + expect(messageBody.textContent).toBe("Date 1970-01-01T00:00:00.000Z"); }); });