diff options
author | Morgan Harris <gormster@me.com> | 2021-11-23 13:15:21 +1100 |
---|---|---|
committer | Morgan Harris <gormster@me.com> | 2021-11-23 13:15:21 +1100 |
commit | a8a8c636b8ee3b536c05653decd71856777c7a5a (patch) | |
tree | b1e5f440460190c258e61628ab1baf3f247d53b8 /spec | |
parent | e0be375fc57930306999f15c7a7266edb0ba3432 (diff) | |
download | svg.js-a8a8c636b8ee3b536c05653decd71856777c7a5a.tar.gz svg.js-a8a8c636b8ee3b536c05653decd71856777c7a5a.zip |
Add regression test for #1235
This is literally all you have to do to break this function... just have
one single other group in your document.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/elements/Element.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/spec/elements/Element.js b/spec/spec/elements/Element.js index 38b862f..70c3a52 100644 --- a/spec/spec/elements/Element.js +++ b/spec/spec/elements/Element.js @@ -165,6 +165,7 @@ describe('Element.js', function () { describe('parents()', () => { it('returns array of parents until the passed element or root svg', () => { const canvas = SVG().addTo(container) + const groupA = canvas.group().addClass('test') const group1 = canvas.group().addClass('test') const group2 = group1.group() const group3 = group2.group() |