From eb2664434981e67e7b08d4825731af18d64f9814 Mon Sep 17 00:00:00 2001 From: Nilesh Date: Wed, 22 Jan 2020 20:36:50 +0000 Subject: [PATCH] Remove deprecated syntax to work with Node.js >= 12 --- test/eyes-test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/eyes-test.js b/test/eyes-test.js index a0699f3..bfe5d67 100644 --- a/test/eyes-test.js +++ b/test/eyes-test.js @@ -1,4 +1,3 @@ -var util = require('util'); var eyes = require('../lib/eyes'); eyes.inspect({ @@ -50,10 +49,10 @@ eyes.inspect([null], "null in array"); var inspect = eyes.inspector({ stream: null }); -util.puts(inspect('something', "something")); -util.puts(inspect("something else")); +console.log(inspect('something', "something")); +console.log(inspect("something else")); -util.puts(inspect(["no color"], null, { styles: false })); +console.log(inspect(["no color"], null, { styles: false })); eyes.inspect('This String is truncated completely', 'String truncated completely', { maxStringLength: 0 }); eyes.inspect('This String is way too long', 'String too long', { maxStringLength: 12 });