Skip to content

Commit

Permalink
add basic Moon instance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 4, 2019
1 parent dc94f82 commit 1900dfa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/moon/test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Moon from "../src/index";

/*test("root Moon instance", () => {
const instance = new Moon({ root: "test", view: "" });
expect(instance.constructor.name).toBe("Function");
expect(instance.name).toBe("Root");
});*/

test("root Moon constructor", () => {
const Root = new Moon({ view: "" });
expect(Root.constructor.name).toBe("Function");
expect(new Root().name).toBe("Root");
});

0 comments on commit 1900dfa

Please sign in to comment.