From 228f36ed73e56c960da920d58fc4cd5ff9a3bc72 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 28 Jul 2017 12:14:18 +0200 Subject: [PATCH] :bug: Adopte une syntaxe moins lisible pour satisfaire les tests Webpack --- test/generateQuestions.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/generateQuestions.test.js b/test/generateQuestions.test.js index d335fe6b9..655c673de 100644 --- a/test/generateQuestions.test.js +++ b/test/generateQuestions.test.js @@ -62,7 +62,7 @@ describe('collectMissingVariables', function() { situation = analyseTopDown(rules,"startHere")(stateSelector), result = collectMissingVariables()(stateSelector,situation) - expect(result).to.be.empty + expect(result).to.deep.equal({}) }); it('should not report missing variables when "one of these" short-circuits', function() { @@ -74,7 +74,7 @@ describe('collectMissingVariables', function() { situation = analyseTopDown(rules,"startHere")(stateSelector), result = collectMissingVariables()(stateSelector,situation) - expect(result).to.be.empty + expect(result).to.deep.equal({}) }); it('should report missing variables in switch statements', function() { @@ -106,7 +106,7 @@ describe('collectMissingVariables', function() { situation = analyseTopDown(rules,"startHere")(stateSelector), result = collectMissingVariables()(stateSelector,situation) - expect(result).to.be.empty + expect(result).to.deep.equal({}) }); it('should not report missing variables when a switch short-circuits', function() { @@ -122,7 +122,7 @@ describe('collectMissingVariables', function() { situation = analyseTopDown(rules,"startHere")(stateSelector), result = collectMissingVariables()(stateSelector,situation) - expect(result).to.be.empty + expect(result).to.deep.equal({}) }); });