mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
21 lines
512 B
JavaScript
21 lines
512 B
JavaScript
import * as rx from 'rxjs';
|
|
import * as ops from 'rxjs/operators';
|
|
import { TestScheduler } from 'rxjs/testing';
|
|
import { pluck } from "rxjs/operators/pluck";
|
|
|
|
const { of, from } = rx;
|
|
const { map, filter } = ops;
|
|
|
|
function f(){
|
|
of(1, 2, 3).pipe(map(x => x * 2));
|
|
someNonStream().pipe(map(x => x * 2));
|
|
|
|
let testScheduler = new TestScheduler();
|
|
testScheduler.run(({x, y, z}) => {
|
|
const source = x('', {o: [a, b, c]});
|
|
z(source.pipe(null)).toBe(expected,y,);
|
|
});
|
|
|
|
z.option$.pipe(pluck("x"))
|
|
}
|