mirror of
https://github.com/amark/gun.git
synced 2025-06-05 21:56:51 +00:00
testing
This commit is contained in:
parent
bc87faa8d9
commit
8dbd9db17b
@ -2,6 +2,7 @@
|
||||
var Gun = require('../gun'), u;
|
||||
Gun.serve = require('./serve');
|
||||
//process.env.GUN_ENV = process.env.GUN_ENV || 'debug';
|
||||
console.LOG = true; // only temporarily, REVERT THIS IN FUTURE!
|
||||
Gun.on('opt', function(root){
|
||||
if(u === root.opt.super){
|
||||
root.opt.super = true;
|
||||
|
@ -3774,6 +3774,24 @@ describe('Gun', function(){
|
||||
done();
|
||||
})
|
||||
});
|
||||
|
||||
/*describe('talk to live server tests', function(){
|
||||
this.timeout(1000 * 9);
|
||||
it.only('Second once on undefined should call', function(done){ // this test is passing when it fails by hand?
|
||||
var gun = Gun('https://gunjs.herokuapp.com/gun');
|
||||
gun.get('~@O8H2BJa4pNfecWamWN7efd888Pg1@hackernoon').once(function(data){
|
||||
console.log(1, data);
|
||||
expect(data).to.not.be.ok();
|
||||
setTimeout(function(){
|
||||
gun.get('~@O8H2BJa4pNfecWamWN7efd888Pg1@hackernoon').once(function(data){
|
||||
console.log(2, data);
|
||||
expect(data).to.not.be.ok();
|
||||
done();
|
||||
});
|
||||
}, 3000);
|
||||
});
|
||||
});
|
||||
});*/
|
||||
return;
|
||||
it('Nested listener should be called', function(done){
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user