diff --git a/test/lib/helpers.js b/test/lib/helpers.js index 1e5b288a..a2ed6cff 100644 --- a/test/lib/helpers.js +++ b/test/lib/helpers.js @@ -1,3 +1,6 @@ +// Let's be strict +equals = strictEqual; + function compareNumbers(number1, number2, message) { if (number1 !== 0) number1 = Math.round(number1 * 100) / 100; diff --git a/test/tests/PathStyle.js b/test/tests/PathStyle.js index 5b7ba8f9..ec52d559 100644 --- a/test/tests/PathStyle.js +++ b/test/tests/PathStyle.js @@ -61,8 +61,8 @@ test('getting group styles', function() { group.appendTop(secondPath); // the group now contains two paths with different fillColors and therefore - // should return null: - equals(group.fillColor, null, 'group.fillColor'); + // should return undefined: + equals(group.fillColor, undefined, 'group.fillColor'); //If we remove the first path, it should now return 'black': group.children[0].remove();