From fe994aaa3641272d4a453241c756d0dbfaa7b7e1 Mon Sep 17 00:00:00 2001 From: Mathieu Pavageau Date: Tue, 6 Nov 2018 14:33:10 +0000 Subject: [PATCH] test: switch arguments in strictEqual In the `test/parallel/test-vm-create-and-run-in-context.js` test the actual and expected arguments in the `assert.strictEqual()` call on line 32 are in the wrong order and they have to be switched around. :100644 100644 8f4ce72c50... bd746cf2df... M test/parallel/test-vm-create-and-run-in-context.js --- test/parallel/test-vm-create-and-run-in-context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-vm-create-and-run-in-context.js b/test/parallel/test-vm-create-and-run-in-context.js index 8f4ce72c50f246..bd746cf2df7080 100644 --- a/test/parallel/test-vm-create-and-run-in-context.js +++ b/test/parallel/test-vm-create-and-run-in-context.js @@ -29,7 +29,7 @@ const vm = require('vm'); // Run in a new empty context let context = vm.createContext(); let result = vm.runInContext('"passed";', context); -assert.strictEqual('passed', result); +assert.strictEqual(result, 'passed'); // Create a new pre-populated context context = vm.createContext({ 'foo': 'bar', 'thing': 'lala' });