UNPKG

spyne

Version:

Reactive Real-DOM Framework for Advanced Javascript applications

54 lines (39 loc) 1.04 kB
import { SpyneApp } from '../spyne/spyne' // import {AppView} from "../app/app-view"; // const AppView = require("../app/app-view"); // import {createElement} from '../spyne/utils/viewstream-dom-utils'; // console.log('tester 2 ', it); // const assert = require('assert'); /* const add = (a, b) => a + b; describe('Demo', () => { it('should add correctly', () => { assert.equal(add(1, 1), 2); }); }); */ /* describe('createElement', ()=>{ assert.isObject(createElement(), 'it is not an object'); }); */ // expect(createElement().is('object')); /* describe('createElement', () => { it('should be a dom element ', () => { let el = createElement('div'); assert.isFunction(el.click); }); }); */ /* describe('CDN', ()=>{ it('exists',()=>{ expect(CDN).to.exist }) }) */ describe('test index.test.js', () => { it('works', () => { SpyneApp.init({ debug:true }, true) // console.log("SPYNE APP IS ",SpyneApp) // throw new Error('ya!') expect(true).to.be.true }) })