fix: formatting for chaining methods (#21027)

Closes: #20996
This commit is contained in:
Alan Agius
2018-01-16 08:53:43 -08:00
committed by Andy
parent f0ce80a5c7
commit bcb9fd7825
2 changed files with 45 additions and 2 deletions
@@ -0,0 +1,37 @@
/// <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;
//// })
//// )
//// )
//// );
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;
})
)
)
);`
);