mirror of
https://github.com/amark/gun.git
synced 2025-05-19 21:36:44 +00:00
27 lines
565 B
JavaScript
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);
|
|
})();
|
|
}); |