From 01bf44adffbb65e847e14c7158c57683afefff37 Mon Sep 17 00:00:00 2001 From: Gabriel Medeiros Coelho Date: Tue, 15 Oct 2019 13:02:49 -0300 Subject: [PATCH] change success variable declaration Since variables defined with const are not supposed to be reassigned, 'success = false' could cause errors. Changed declaration to let to avoid that. --- packages/check/match_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/check/match_test.js b/packages/check/match_test.js index 33f2a72440..59c20fb69c 100644 --- a/packages/check/match_test.js +++ b/packages/check/match_test.js @@ -446,7 +446,7 @@ Meteor.isServer && Tinytest.addAsync('check - non-fiber check works', (test, onC // Get out of a fiber with process.nextTick and ensure that we can still use // check. process.nextTick(() => { - const success = true; + let success = true; if (Fiber.current) { success = false; }