Report an issue with the challenge: {{title}}, added on {{added}} by {{username}}
+The content of this challenge is:
+{{description}}
+diff --git a/src/test/controllers/report.test.js b/src/test/controllers/report.test.js index 95c032c..88b41b6 100644 --- a/src/test/controllers/report.test.js +++ b/src/test/controllers/report.test.js @@ -4,12 +4,12 @@ const router = require('../../app.js'); test.only('Test report GET route', (t) => { request(router) - .get('/report') + .get('/report?challenge=3') .expect(200) .expect('Content-Type', /html/) .end((err, res) => { t.error(err); - t.ok(res.text.includes('Report'), 'response contains login message'); + t.ok(res.text.includes('Report'), 'response contains report message'); t.end(); }); }); diff --git a/src/views/challenge.hbs b/src/views/challenge.hbs index 9bc9c7e..354a560 100644 --- a/src/views/challenge.hbs +++ b/src/views/challenge.hbs @@ -14,7 +14,7 @@ \ No newline at end of file diff --git a/src/views/home.hbs b/src/views/home.hbs index 9d6a962..89a7c73 100644 --- a/src/views/home.hbs +++ b/src/views/home.hbs @@ -3,15 +3,16 @@ {{#if title}}
{{title}}
- - - Report an issue with this challenge + Report an issue with this challengeno active
diff --git a/src/views/report.hbs b/src/views/report.hbs index 76fffdc..05dd3b3 100644 --- a/src/views/report.hbs +++ b/src/views/report.hbs @@ -1,7 +1,14 @@Report an issue with the challenge: {{title}}, added on {{added}} by {{username}}
+The content of this challenge is:
+{{description}}
+