Update test.ts

This commit is contained in:
Sindre Sorhus 2019-04-28 14:57:33 +07:00 committed by GitHub
parent 5145bdf847
commit 7910107899
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -808,10 +808,10 @@ test('is.domElement', t => {
script: 'HTMLScriptElement'
};
Object.entries(htmlTagNameToTypeName).forEach(([tagName, typeName]) => {
for (const [tagName, typeName] of Object.entries(htmlTagNameToTypeName)) {
const domElement = createDomElement(tagName);
t.is(is(domElement), typeName);
});
}
});
test('is.observable', t => {