Odoo GraphQL Subscription using Node, Express JS for Sample
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
402 B

4 months ago
import assert from 'assert';
import { parse } from './parse.js';
import { merge } from '../../src/extras.js';
describe('extras/merge', () => {
it('should emit all data from each input in parallel', async () => {
let output = '';
await merge(
parse('a-b-c-d'),
parse('-A-B-C-D')
).forEach(
value => output += value
);
assert.equal(output, 'aAbBcCdD');
});
});