1a12fb870b
- New /developers/ page with API docs, SDKs, pricing, use cases - OpenAPI 3.0 spec for Orders, Missions, Photos, Analytics - Case study: Glasskiosken i Flatenbadet — complete ROI analysis - Updated /order/ with recurring missions and frequency dropdown
24 lines
354 B
JavaScript
24 lines
354 B
JavaScript
'use strict'
|
|
|
|
const t = require('tap')
|
|
const { register, unregister } = require('..')
|
|
|
|
process.on('warning', () => {
|
|
t.fail('warning emitted')
|
|
})
|
|
|
|
const objs = []
|
|
for (let i = 0; i < 20; i++) {
|
|
const obj = { i }
|
|
objs.push(obj)
|
|
register(obj, shutdown)
|
|
}
|
|
|
|
for (const obj of objs) {
|
|
unregister(obj)
|
|
}
|
|
|
|
t.pass('completed')
|
|
|
|
function shutdown () {}
|