Skip to content

Commit

Permalink
Add coverage of base noop getState/setState
Browse files Browse the repository at this point in the history
  • Loading branch information
bingenito committed Oct 26, 2018
1 parent 0094e8a commit db96d7c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/window.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ describe ("ContainerWindow", () => {
it("nativeWindow returns undefined", () => {
expect(new MockWindow(undefined).nativeWindow).toBeUndefined();
});

it("getState returns undefined", (done) => {
new MockWindow(undefined).getState().then(state => {
expect(state).toBeUndefined();
}).then(done);
});

it("setState returns", (done) => {
new MockWindow(undefined).setState({}).then(() => {
expect(true);
}).then(done);
});
});

describe ("static events", () => {
Expand Down

0 comments on commit db96d7c

Please sign in to comment.