mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Renamed test directory to match the query name
Co-Authored-By: Asger F <316427+asgerf@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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"))
|
||||
}
|
||||
Reference in New Issue
Block a user