done-autorender
Version:
Autorender CanJS projects
26 lines (23 loc) • 588 B
HTML
<html>
<head>
<title>done-autorender tests</title>
</head>
<body>
<script>
window.QUnit = window.parent.QUnit;
window.removeMyself = window.parent.removeMyself;
</script>
<script src="../../node_modules/steal/steal.js" main="test/basics/index.stache!done-autorender">
var AppViewModel = require("test/basics/state");
var $ = require("jquery");
var vm = $("html").viewModel();
if(window.QUnit) {
QUnit.ok(vm instanceof AppViewModel, "got the appstate");
removeMyself();
} else {
console.log("Got viewModel", vm);
}
</script>
</body>
</html>