dev-api: add developer portal, OpenAPI spec, and Flatenbadet case study
- 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
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { join } = require('path')
|
||||
const ThreadStream = require('..')
|
||||
|
||||
test('event propagate', t => {
|
||||
const stream = new ThreadStream({
|
||||
filename: join(__dirname, 'emit-event.js'),
|
||||
workerData: {},
|
||||
sync: true
|
||||
})
|
||||
t.on('end', () => stream.end())
|
||||
stream.on('socketError', function (a, b, c, n, error) {
|
||||
t.same(a, 'list')
|
||||
t.same(b, 'of')
|
||||
t.same(c, 'args')
|
||||
t.same(n, 123)
|
||||
t.same(error, new Error('unable to write data to the TCP socket'))
|
||||
t.end()
|
||||
})
|
||||
stream.write('hello')
|
||||
})
|
||||
Reference in New Issue
Block a user