Skip to content

Commit

Permalink
fixup: suppress tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
imcotton committed Feb 23, 2019
1 parent 542d02e commit 2b77a70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/operators/pluck-spec.ts
Expand Up @@ -82,13 +82,15 @@ describe('pluck operator', () => {
const expected = '--r-x--y-z---w-|';
const values: { [key: string]: number | undefined } = {r: 1, x: undefined, y: undefined, z: undefined, w: 5};

// @ts-ignore
const r = a.pipe(pluck('a', 'b', 'c'));
expectObservable(r).toBe(expected, values);
expectSubscriptions(a.subscriptions).toBe(asubs);
});

it('should throw an error if not property is passed', () => {
expect(() => {
// @ts-ignore
of({prop: 1}, {prop: 2}).pipe(pluck());
}).to.throw(Error, 'list of properties cannot be empty.');
});
Expand All @@ -98,6 +100,7 @@ describe('pluck operator', () => {
const asubs = '(^!)';
const expected = '#';

// @ts-ignore
const r = a.pipe(pluck('whatever'));
expectObservable(r).toBe(expected);
expectSubscriptions(a.subscriptions).toBe(asubs);
Expand All @@ -120,6 +123,7 @@ describe('pluck operator', () => {

const invoked = 0;
const r = a.pipe(
// @ts-ignore
pluck('whatever'),
tap(null, null, () => {
expect(invoked).to.equal(0);
Expand Down Expand Up @@ -169,7 +173,7 @@ describe('pluck operator', () => {

const r = a.pipe(
mergeMap((x: { prop: string }) => of(x)),
pluck<{ prop: string }, string>('prop'),
pluck('prop'),
mergeMap((x: string) => of(x))
);

Expand Down

0 comments on commit 2b77a70

Please sign in to comment.