UNPKG

lightstreamer-adapter

Version:

This package includes the resources needed to write Data Adapters and Metadata Adapters for Lightstreamer Server in a Node.js environment. The adapters will run in a separate process, communicating with the Server through the Adapter Remoting Infrastructu

17 lines (16 loc) 308 B
import assert from 'node:assert'; export function expect(max = 1) { let _resolve = null; const finished = new Promise(resolve => { _resolve = resolve }) return { done() { if (!--max) _resolve() }, equal(exp, act) { return assert.equal(act, exp); }, finished } }