Convert a DOM DocumentType into a string, e.g. "<!DOCTYPE html>"
Browse Source

Fix test for case without doctype.

tags/v0.1.2
Gerben 6 years ago
parent
commit
c44881e5d2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/index.js

+ 1
- 1
test/index.js View File

@@ -15,7 +15,7 @@ function makeStubDocument(doctype) {

test('should return empty string if absent', t => {
const doctype = ''
const doc = makeStubDocument()
const doc = makeStubDocument(doctype)
t.is(doctypeToString(doc.doctype), doctype)
})



Loading…
Cancel
Save