summaryrefslogtreecommitdiffstats
path: root/spec/spec/adopter.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec/adopter.js')
-rw-r--r--spec/spec/adopter.js7
1 files changed, 7 insertions, 0 deletions
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