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.
 
 
 

13 lines
286 B

import assert from 'assert';
describe('map', () => {
it('maps the results using the supplied callback', async () => {
let list = [];
await Observable.from([1, 2, 3])
.map(x => x * 2)
.forEach(x => list.push(x));
assert.deepEqual(list, [2, 4, 6]);
});
});