Skip to content

Commit 765e57b

Browse files
committed
Update tests
1 parent 91ac4b2 commit 765e57b

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed

tests/cases/compiler/bluebirdStaticThis.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// and all the comments.
33
// Then it adds explicit `this` arguments to the static members.
44
// Tests by: Bart van der Schoor <https://github.com/Bartvds>
5-
declare class Promise<R> implements Promise.Thenable<R> {
5+
export declare class Promise<R> implements Promise.Thenable<R> {
66
constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (error: any) => void) => void);
77
static try<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>;
88
static try<R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>;
@@ -108,7 +108,7 @@ declare class Promise<R> implements Promise.Thenable<R> {
108108
static filter<R>(dit: typeof Promise, values: R[], filterer: (item: R, index: number, arrayLength: number) => boolean): Promise<R[]>;
109109
}
110110

111-
declare module Promise {
111+
export declare module Promise {
112112
export interface Thenable<R> {
113113
then<U>(onFulfilled: (value: R) => Thenable<U>, onRejected: (error: any) => Thenable<U>): Thenable<U>;
114114
then<U>(onFulfilled: (value: R) => Thenable<U>, onRejected?: (error: any) => U): Thenable<U>;
@@ -118,9 +118,6 @@ declare module Promise {
118118

119119
}
120120

121-
declare module 'bluebird' {
122-
export = Promise;
123-
}
124121
interface Foo {
125122
a: number;
126123
b: string;

tests/cases/compiler/promiseIdentity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface IPromise<T> {
1+
export interface IPromise<T> {
22
then<U>(callback: (x: T) => IPromise<U>): IPromise<U>;
33
}
44
interface Promise<T> {

tests/cases/compiler/promiseIdentity2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
interface IPromise<T, V> {
1+
export interface IPromise<T, V> {
22
then<U, W>(callback: (x: T) => IPromise<U, W>): IPromise<U, W>;
33
}
4-
interface Promise<T, V> {
4+
export interface Promise<T, V> {
55
then<U, W>(callback: (x: T) => Promise<T, U>): Promise<T, W>;
66
}
77

tests/cases/compiler/promiseIdentityWithAny.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
interface IPromise<T, V> {
1+
export interface IPromise<T, V> {
22
then<U, W>(callback: (x: T) => IPromise<U, W>): IPromise<U, W>;
33
}
4-
interface Promise<T, V> {
4+
export interface Promise<T, V> {
55
then<U, W>(callback: (x: T) => Promise<any, any>): Promise<any, any>;
66
}
77

tests/cases/compiler/promiseIdentityWithAny2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface IPromise<T, V> {
1+
export interface IPromise<T, V> {
22
then<U, W>(callback: (x: T) => IPromise<U, W>): IPromise<U, W>;
33
}
44
interface Promise<T, V> {

tests/cases/compiler/promiseIdentityWithConstraints.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
interface IPromise<T, V> {
1+
export interface IPromise<T, V> {
22
then<U extends T, W extends V>(callback: (x: T) => IPromise<U, W>): IPromise<U, W>;
33
}
4-
interface Promise<T, V> {
4+
export interface Promise<T, V> {
55
then<U extends T, W extends V>(callback: (x: T) => Promise<U, W>): Promise<U, W>;
66
}
77

0 commit comments

Comments
 (0)