From 826649995f1aae806fb9bf8464a4259c4290c4fb Mon Sep 17 00:00:00 2001 From: wout Date: Tue, 2 Sep 2014 14:47:02 +0200 Subject: Fixed bug in clone() method --- spec/spec/element.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec') diff --git a/spec/spec/element.js b/spec/spec/element.js index 08a7a3e..1c722cd 100755 --- a/spec/spec/element.js +++ b/spec/spec/element.js @@ -419,6 +419,10 @@ describe('Element', function() { expect(clone.get(0).attr('id')).not.toBe(group.get(0).attr('id')) expect(clone.get(1).attr('id')).not.toBe(group.get(1).attr('id')) }) + it('inserts the clone after the cloned element', function() { + clone = rect.clone() + expect(rect.next()).toBe(clone) + }) }) describe('toString()', function() { -- cgit v1.2.3