Skip to content

Commit

Permalink
chore: remove explicit types in toPromise spec (#5261)
Browse files Browse the repository at this point in the history
As toPromise can resolve to undefined via the change in #5072.
  • Loading branch information
cartant authored and benlesh committed Jan 23, 2020
1 parent b1c3573 commit c8957b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/operators/toPromise-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { of, EMPTY, throwError, config } from 'rxjs';
/** @test {toPromise} */
describe('Observable.toPromise', () => {
it('should convert an Observable to a promise of its last value', (done: MochaDone) => {
of(1, 2, 3).toPromise(Promise).then((x: number) => {
of(1, 2, 3).toPromise(Promise).then(x => {
expect(x).to.equal(3);
done();
});
Expand Down Expand Up @@ -33,7 +33,7 @@ describe('Observable.toPromise', () => {
return new Promise(callback as any);
} as any;

of(42).toPromise().then((x: number) => {
of(42).toPromise().then(x => {
expect(wasCalled).to.be.true;
expect(x).to.equal(42);
done();
Expand Down

0 comments on commit c8957b0

Please sign in to comment.