gun/test/test.js
2014-03-17 03:04:59 -06:00

27 lines
565 B
JavaScript

$(function(){
/*
Tests not finished!
How does one automate testing of human input?
*/
describe('Start',function(){
it('tests',function(){
//return;
var s = theory.shot({src: '/test/server.js'})
, g = s.gun('gunjs.herokuapp.com/state.json');
s.wait();
var b = g({});
var c = g({});
b('name','Bob');
c('name','Calvin');
c('brother',b);
s.go();
console.log('first test done');
});
});
(function run(){
if(theory && theory.shot){
return mocha.run();
}
theory.time.wait(run,10);
})();
});