From 3a043e0023a257522be300b268675dce9c4de78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 11 Jun 2013 13:40:50 -0700 Subject: [PATCH] Fix empty tests. --- test/tests/Item.js | 6 ++++++ test/tests/Path.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/test/tests/Item.js b/test/tests/Item.js index 33920d78..251db2c8 100644 --- a/test/tests/Item.js +++ b/test/tests/Item.js @@ -551,11 +551,17 @@ test('Naming a removed item', function() { var path = new Path(); path.remove(); path.name = 'test'; + equals(function() { + return path.name; + }, 'test'); }); test('Naming a layer', function() { var layer = new Layer(); layer.name = 'test'; + equals(function() { + return layer.name; + }, 'test'); }); test('Cloning a linked size', function() { diff --git a/test/tests/Path.js b/test/tests/Path.js index bd156ee5..7546b862 100644 --- a/test/tests/Path.js +++ b/test/tests/Path.js @@ -281,4 +281,7 @@ test('Path#fullySelected', function() { test('Simplifying a path with three segments of the same position should not throw an error', function() { var path = new Path([20, 20], [20, 20], [20, 20]); path.simplify(); + equals(function() { + return path.segments.length; + }, 1); });