From 56d512dd680baa444b6152844e6c46ebef0bb6c6 Mon Sep 17 00:00:00 2001 From: Stefan Penner Date: Wed, 30 Dec 2015 10:59:52 -0800 Subject: [PATCH] [FIX] loosen node-back first-arg check to match node conventions first argument is either: * falsey: success scenario * truthy: failure scenario, and the value may be the error --- tests/files.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/files.js b/tests/files.js index 583d4f62..29852c8f 100644 --- a/tests/files.js +++ b/tests/files.js @@ -170,8 +170,9 @@ suite.add(new YUITest.TestCase({ 'test: readFile': function () { var test = this; Y.Files.readFile('input/test/test.js', 'utf8', function (err) { + test.resume(function () { - Assert.isNull(err); + Assert.isFalse(!!err); }); }); test.wait(100);