Skip to content

Commit ba67a13

Browse files
committed
Fix tests and types
1 parent f49b2ec commit ba67a13

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

check-types/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SimpleNode, SimpleDocument, SimpleElement, SimpleText, SimpleComment, SimpleDocumentFragment, SerializableNode, SerializableElement } from '@simple-dom/interface';
1+
import { SimpleDocument, SimpleElement, SimpleText, SimpleComment, SimpleDocumentFragment, SerializableNode, SerializableElement } from '@simple-dom/interface';
22

33
export class CheckSimple {
44
createHTMLDocument(): SimpleDocument {
@@ -20,6 +20,10 @@ export class CheckSimple {
2020
createDocumentFragment(text: string): SimpleDocumentFragment {
2121
return document.createDocumentFragment() as SimpleDocumentFragment;
2222
}
23+
24+
getOffsetParent(): SimpleElement | null {
25+
return document.createElement('div').offsetParent as SimpleElement | null;
26+
}
2327
}
2428

2529
export class CheckSerializable {

packages/@simple-dom/interface/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type SimpleNode =
4747
SimpleDocumentFragment;
4848

4949
export interface SimpleNodeBase {
50-
readonly ownerDocument: SimpleDocument;
50+
readonly ownerDocument: SimpleDocument | null;
5151
readonly nodeType: NodeType;
5252
readonly nodeName: string;
5353

testem.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"test_page": "test/index.html",
33
"parallel": 5,
4-
"before_tests": "yarn run build",
54
"launch_in_ci": ["Chrome"],
65
"launch_in_dev": ["Chrome", "Firefox", "Safari"],
76
"browser_args": {

0 commit comments

Comments
 (0)