From 1af3d0adc636f2eb1b435fc7b785edab45689152 Mon Sep 17 00:00:00 2001 From: Arun Kumar Date: Tue, 5 Jul 2016 08:22:36 +0530 Subject: [PATCH] Update tests when reset button is clicked --- client/commonFramework/end.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/commonFramework/end.js b/client/commonFramework/end.js index 1a8ae7be86..149ef4e777 100644 --- a/client/commonFramework/end.js +++ b/client/commonFramework/end.js @@ -66,13 +66,14 @@ $(document).ready(function() { .catch(err => Observable.just({ err })); }) .subscribe( - ({ err, output, originalCode }) => { + ({ err, output, originalCode, tests }) => { if (err) { console.error(err); return common.updateOutputDisplay('' + err); } common.codeStorage.updateStorage(challengeName, originalCode); common.codeUri.querify(originalCode); + common.displayTestResults(tests, true); common.updateOutputDisplay(output); return null; },