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

Simplify test for case without doctype.

No need to test the DOM implementation itself.
tags/v0.1.2
Gerben 6 years ago
parent
commit
f023801cdd
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      test/index.js

+ 2
- 4
test/index.js View File

@@ -13,10 +13,8 @@ function makeStubDocument(doctype) {
return doc
}

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

test('should work for a HTML5-ish doctype', t => {


Loading…
Cancel
Save