Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
test: test for default value of view for App class
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowtime2000 committed Nov 25, 2020
1 parent 7dd69df commit 8cae269
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/__test__/App.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createApp } from '../App';
import { createApp, App } from '../App';

describe('.App', () => {
it('should create and mount app properly', () => {
Expand All @@ -7,4 +7,8 @@ describe('.App', () => {
const newView = createApp(view).mount(fakeElem, true);
expect(view).toBe(newView);
});
it('should have an empty object as the default view', () => {
const app = new App();
expect(app.view).toEqual({});
});
});

0 comments on commit 8cae269

Please sign in to comment.