From 859cf9fce39ea36ae40af8b828d4683b79746dee Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 25 Jun 2014 15:27:31 +0200 Subject: Added more versatility to adopter --- spec/index.html | 1 + spec/spec/adopter.js | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'spec') diff --git a/spec/index.html b/spec/index.html index 060e076..94f13db 100755 --- a/spec/index.html +++ b/spec/index.html @@ -20,6 +20,7 @@ + Some description diff --git a/spec/spec/adopter.js b/spec/spec/adopter.js index 522802f..0136d0e 100644 --- a/spec/spec/adopter.js +++ b/spec/spec/adopter.js @@ -49,6 +49,13 @@ describe('Adopter', function() { expect(polygon.array() instanceof SVG.PointArray).toBeTruthy() }) }) + + describe('with node that has no matching svg.js class', function() { + it('wraps the node in the base SVG.Element class', function() { + var desc = SVG.get('inlineSVG').select('desc').first() + expect(desc instanceof SVG.Element).toBeTruthy() + }) + }) }) \ No newline at end of file -- cgit v1.2.3