From 46d52055bd38ba853690e2ddc476ed0c0ddd315d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Abra=CC=83o?= Date: Fri, 6 Oct 2017 14:01:25 -0300 Subject: [PATCH 1/2] Adding tested values on test fail condition message at test/parallel/test-vm-symbols.js --- test/parallel/test-vm-symbols.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-vm-symbols.js b/test/parallel/test-vm-symbols.js index 0867c7253dcec4..b1ea4025a0bf20 100644 --- a/test/parallel/test-vm-symbols.js +++ b/test/parallel/test-vm-symbols.js @@ -19,7 +19,9 @@ const context = new Document(); vm.createContext(context); assert.strictEqual(context.getSymbolValue(), 'foo', - 'should return symbol-keyed value from the outside'); + `should return symbol-keyed value from the outside. + Received: ${context.getSymbolValue()}`); assert.strictEqual(vm.runInContext('this.getSymbolValue()', context), 'foo', - 'should return symbol-keyed value from the inside'); + `should return symbol-keyed value from the inside. + Received: ${vm.runInContext('this.getSymbolValue()', context)}`); From 3c7cd6d3dd837b2b1413d50d6e16b110ce85b8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Abra=CC=83o?= Date: Wed, 18 Oct 2017 17:25:02 -0200 Subject: [PATCH 2/2] removing tested values and custom test case message at test/parallel/test-vm-symbols.js --- test/parallel/test-vm-symbols.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-vm-symbols.js b/test/parallel/test-vm-symbols.js index b1ea4025a0bf20..e5a4e9e756d173 100644 --- a/test/parallel/test-vm-symbols.js +++ b/test/parallel/test-vm-symbols.js @@ -18,10 +18,6 @@ Document.prototype.getSymbolValue = function() { const context = new Document(); vm.createContext(context); -assert.strictEqual(context.getSymbolValue(), 'foo', - `should return symbol-keyed value from the outside. - Received: ${context.getSymbolValue()}`); +assert.strictEqual(context.getSymbolValue(), 'foo'); -assert.strictEqual(vm.runInContext('this.getSymbolValue()', context), 'foo', - `should return symbol-keyed value from the inside. - Received: ${vm.runInContext('this.getSymbolValue()', context)}`); +assert.strictEqual(vm.runInContext('this.getSymbolValue()', context), 'foo');