2018-01-16 17:53:43 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
//// z$ = this.store.select(this.fake())
|
|
|
|
//// .ofType(
|
|
|
|
//// 'ACTION',
|
|
|
|
//// 'ACTION-2'
|
|
|
|
//// )
|
|
|
|
//// .pipe(
|
|
|
|
//// filter(x => !!x),
|
|
|
|
//// switchMap(() =>
|
|
|
|
//// this.store.select(this.menuSelector.getAll('x'))
|
|
|
|
//// .pipe(
|
|
|
|
//// tap(x => {
|
|
|
|
//// this.x = !x;
|
|
|
|
//// })
|
|
|
|
//// )
|
|
|
|
//// )
|
|
|
|
//// );
|
2018-03-06 01:15:08 +01:00
|
|
|
////
|
|
|
|
////1
|
|
|
|
//// .toFixed(
|
|
|
|
//// 2);
|
2018-01-16 17:53:43 +01:00
|
|
|
|
|
|
|
format.document();
|
|
|
|
verify.currentFileContentIs(`z$ = this.store.select(this.fake())
|
|
|
|
.ofType(
|
|
|
|
'ACTION',
|
|
|
|
'ACTION-2'
|
|
|
|
)
|
|
|
|
.pipe(
|
|
|
|
filter(x => !!x),
|
|
|
|
switchMap(() =>
|
|
|
|
this.store.select(this.menuSelector.getAll('x'))
|
|
|
|
.pipe(
|
|
|
|
tap(x => {
|
|
|
|
this.x = !x;
|
|
|
|
})
|
|
|
|
)
|
|
|
|
)
|
2018-03-06 01:15:08 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
1
|
|
|
|
.toFixed(
|
|
|
|
2);`
|
2018-01-16 17:53:43 +01:00
|
|
|
);
|