gun/test/hub/hub-test.js
Hector 3b8eb16960
✂️ Path shortened ! (#1141)
* Fix the "/" bug.

* Update the "hub-test" to make them work everywhere!

* 🤛Fix the "/" bug !

* Fix indentation

* ✂️ My new quest shall be to shorten the file paths !

* 👽 Remove Chokidar from dependencies

* 👽 Remove chokidar from dependencies!
2021-10-29 23:20:16 -07:00

9 lines
233 B
JavaScript

const Gun = require('../..');
const gun = Gun();
gun.get('hub').on(data => {
console.log(data)
})
const hub = require('../../lib/hub');
hub.watch(__dirname, {msg: true, hubignore: true, alias:require('os').userInfo().username})