diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js
index 4c84777fab..314888bcb2 100644
--- a/apps/remix-ide/src/app/tabs/test-tab.js
+++ b/apps/remix-ide/src/app/tabs/test-tab.js
@@ -149,25 +149,35 @@ module.exports = class TestTab extends ViewPlugin {
`)
} else if (result.type === 'testFailure') {
- const preposition = result.assertMethod === 'equal' || result.assertMethod === 'notEqual' ? 'to' : ''
- const method = result.assertMethod === 'ok' ? '' : result.assertMethod
- const expected = result.assertMethod === 'ok' ? `'true'` : result.expected
- this.testsOutput.appendChild(yo`
+ if (!result.assertMethod) {
+ this.testsOutput.appendChild(yo`
✘ ${result.value}
Error Message:
-
"${result.errMsg}"
-
Asserttion:
-
-
Expected value should be
-
${method}
-
${preposition} ${expected}
-
-
Received value:
-
${result.returned}
-
Skipping the rest...
+
"${result.errMsg}"
`)
+ } else {
+ const preposition = result.assertMethod === 'equal' || result.assertMethod === 'notEqual' ? 'to' : ''
+ const method = result.assertMethod === 'ok' ? '' : result.assertMethod
+ const expected = result.assertMethod === 'ok' ? `'true'` : result.expected
+ this.testsOutput.appendChild(yo`
+
+
✘ ${result.value}
+
Error Message:
+
"${result.errMsg}"
+
Asserttion:
+
+
Expected value should be
+
${method}
+
${preposition} ${expected}
+
+
Received value:
+
${result.returned}
+
Skipping the rest...
+
+ `)
+ }
}
}