Sun calculation js library which is fully based on formula from http://aa.quae.nl/en/reken/zonpositie.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
463 B

const MP = require('stream').PassThrough // require('./')
const mp = new MP()
const wait = (n) => new Promise(resolve => setTimeout(resolve, n))
const t = require('tap')
t.test('end ordering', async t => {
mp.on('end', _ => console.log('end'))
mp.end()
console.log('called end')
// mp.resume()
// console.log('called resume()')
// mp.read()
// console.log('called read')
mp.on('data', _=>_)
console.log('added data handler')
await wait(1)
})