diff --git a/homework/Contributor.js b/homework/Contributor.js index 0bfd5a15e..c74775216 100644 --- a/homework/Contributor.js +++ b/homework/Contributor.js @@ -14,6 +14,6 @@ class Contributor { */ render(container) { // TODO: replace the next line with your code. - Util.createAndAppend('pre', container, JSON.stringify(this.contributor, null, 2)); + Util.createAndAppend('pre', container, { text: JSON.stringify(this.contributor, null, 2) }); } } diff --git a/homework/Repository.js b/homework/Repository.js index 267960a5a..86b72d71d 100644 --- a/homework/Repository.js +++ b/homework/Repository.js @@ -14,7 +14,7 @@ class Repository { */ render(container) { // TODO: replace the next line with your code. - Util.createAndAppend('pre', container, JSON.stringify(this.repository, null, 2)); + Util.createAndAppend('pre', container, { text: JSON.stringify(this.repository, null, 2) }); } /**