diff --git a/test/DocumentFragment.tests.ts b/test/DocumentFragment.tests.ts index 9538f07..30baed4 100644 --- a/test/DocumentFragment.tests.ts +++ b/test/DocumentFragment.tests.ts @@ -14,6 +14,15 @@ describe('DocumentFragment', () => { chai.assert.equal(df.nodeType, 11); chai.assert.equal(df.nodeName, '#document-fragment'); chai.assert.equal(df.nodeValue, null); + chai.assert.equal(df.ownerDocument, document); + }); + + it('can be created using its constructor', () => { + const df = new slimdom.DocumentFragment(); + chai.assert.equal(df.nodeType, 11); + chai.assert.equal(df.nodeName, '#document-fragment'); + chai.assert.equal(df.nodeValue, null); + chai.assert.equal(df.ownerDocument, slimdom.document); }); it('can not change its nodeValue', () => {