Skip to content

Commit

Permalink
Fix tests and types
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Apr 26, 2022
1 parent a3b55a6 commit 6d1c643
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion check-types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SimpleNode, SimpleDocument, SimpleElement, SimpleText, SimpleComment, SimpleDocumentFragment, SerializableNode, SerializableElement } from '@simple-dom/interface';
import { SimpleDocument, SimpleElement, SimpleText, SimpleComment, SimpleDocumentFragment, SerializableNode, SerializableElement } from '@simple-dom/interface';

export class CheckSimple {
createHTMLDocument(): SimpleDocument {
Expand All @@ -20,6 +20,10 @@ export class CheckSimple {
createDocumentFragment(text: string): SimpleDocumentFragment {
return document.createDocumentFragment() as SimpleDocumentFragment;
}

getOffsetParent(): SimpleElement | null {
return document.createElement('div').offsetParent as SimpleElement | null;
}
}

export class CheckSerializable {
Expand Down
2 changes: 1 addition & 1 deletion packages/@simple-dom/interface/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type SimpleNode =
SimpleDocumentFragment;

export interface SimpleNodeBase {
readonly ownerDocument: SimpleDocument;
readonly ownerDocument: SimpleDocument | null;
readonly nodeType: NodeType;
readonly nodeName: string;

Expand Down
1 change: 0 additions & 1 deletion testem.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"test_page": "test/index.html",
"parallel": 5,
"before_tests": "yarn run build",
"launch_in_ci": ["Chrome"],
"launch_in_dev": ["Chrome", "Firefox", "Safari"],
"browser_args": {
Expand Down

0 comments on commit 6d1c643

Please sign in to comment.