can-todomvc-test
v6.1.0
Published
Tests and assets for the todomvc-steal guide
Downloads
14
Keywords
Readme
can-todomvc-test
This project is used to test a CanJS implementation of TodoMVC.
To use it:
- Install it
npm install can-todomvc-test --save-dev
- Import it and pass it your application main element:
class TodoMVC extends StacheElement {
static view = "";
static props = { ... };
}
customElements.define("todo-mvc", TodoMVC);
...
const todoMvcTest = require("can-todomvc-test");
todoMvcTest(document.querySelector("todo-mvc"));