jasmine-marbles
Advanced tools
Comparing version 0.9.0-beta.0 to 0.9.0
@@ -1,37 +0,21 @@ | ||
import { | ||
TestColdObservable, | ||
TestHotObservable, | ||
TestObservable, | ||
} from './src/test-observables'; | ||
export { | ||
getTestScheduler, | ||
initTestScheduler, | ||
resetTestScheduler, | ||
} from './src/scheduler'; | ||
export declare function hot( | ||
marbles: string, | ||
values?: any, | ||
error?: any, | ||
): TestHotObservable; | ||
export declare function cold( | ||
marbles: string, | ||
values?: any, | ||
error?: any, | ||
): TestColdObservable; | ||
import { TestColdObservable, TestHotObservable, TestObservable } from './src/test-observables'; | ||
export { getTestScheduler, initTestScheduler, resetTestScheduler, } from './src/scheduler'; | ||
export declare function hot(marbles: string, values?: any, error?: any): TestHotObservable; | ||
export declare function cold(marbles: string, values?: any, error?: any): TestColdObservable; | ||
export declare function time(marbles: string): number; | ||
declare global { | ||
namespace jasmine { | ||
interface Matchers<T> { | ||
toBeObservable(expected: TestObservable): boolean; | ||
toHaveSubscriptions(marbles: string | string[]): boolean; | ||
namespace jasmine { | ||
interface Matchers<T> { | ||
toBeObservable(expected: TestObservable): boolean; | ||
toHaveSubscriptions(marbles: string | string[]): boolean; | ||
} | ||
} | ||
} | ||
namespace jest { | ||
interface Matchers<R> { | ||
toBeObservable(expected: TestObservable): R; | ||
toHaveSubscriptions(marbles: string | string[]): R; | ||
namespace jest { | ||
interface Matchers<R> { | ||
toBeObservable(expected: TestObservable): R; | ||
toHaveSubscriptions(marbles: string | string[]): R; | ||
} | ||
} | ||
} | ||
} | ||
export declare function addMatchers(): void; | ||
export declare function setupEnvironment(): void; |
import { ObservableNotification } from 'rxjs'; | ||
import { TestMessages } from './types'; | ||
export declare function mapSymbolsToNotifications( | ||
marbles: string, | ||
messagesArg: TestMessages, | ||
): { | ||
[key: string]: ObservableNotification<any>; | ||
export declare function mapSymbolsToNotifications(marbles: string, messagesArg: TestMessages): { | ||
[key: string]: ObservableNotification<any>; | ||
}; |
import { ObservableNotification } from 'rxjs'; | ||
import { TestMessages } from './types'; | ||
export declare function unparseMarble( | ||
result: TestMessages, | ||
assignSymbolFn: (a: ObservableNotification<any>) => string, | ||
): string; | ||
export declare function unparseMarble(result: TestMessages, assignSymbolFn: (a: ObservableNotification<any>) => string): string; |
import { Observable } from 'rxjs'; | ||
import { SubscriptionLogs } from './types'; | ||
export declare class TestColdObservable extends Observable<any> { | ||
marbles: string; | ||
values?: | ||
| { | ||
marbles: string; | ||
values?: { | ||
[name: string]: any; | ||
} | ||
| undefined; | ||
error?: any; | ||
constructor( | ||
marbles: string, | ||
values?: | ||
| { | ||
[name: string]: any; | ||
} | ||
| undefined, | ||
error?: any, | ||
); | ||
getSubscriptions(): SubscriptionLogs[]; | ||
} | undefined; | ||
error?: any; | ||
constructor(marbles: string, values?: { | ||
[name: string]: any; | ||
} | undefined, error?: any); | ||
getSubscriptions(): SubscriptionLogs[]; | ||
} | ||
export declare class TestHotObservable extends Observable<any> { | ||
marbles: string; | ||
values?: | ||
| { | ||
marbles: string; | ||
values?: { | ||
[name: string]: any; | ||
} | ||
| undefined; | ||
error?: any; | ||
constructor( | ||
marbles: string, | ||
values?: | ||
| { | ||
[name: string]: any; | ||
} | ||
| undefined, | ||
error?: any, | ||
); | ||
getSubscriptions(): SubscriptionLogs[]; | ||
} | undefined; | ||
error?: any; | ||
constructor(marbles: string, values?: { | ||
[name: string]: any; | ||
} | undefined, error?: any); | ||
getSubscriptions(): SubscriptionLogs[]; | ||
} | ||
export declare type TestObservable = TestColdObservable | TestHotObservable; |
@@ -5,10 +5,6 @@ import { TestScheduler } from 'rxjs/testing'; | ||
*/ | ||
export declare type TestMessages = ReturnType< | ||
typeof TestScheduler.parseMarbles | ||
>; | ||
export declare type TestMessages = ReturnType<typeof TestScheduler.parseMarbles>; | ||
/** | ||
* Exported return type of SubscriptionLog to avoid importing internal APIs. | ||
*/ | ||
export declare type SubscriptionLogs = ReturnType< | ||
typeof TestScheduler.parseMarblesAsSubscriptions | ||
>; | ||
export declare type SubscriptionLogs = ReturnType<typeof TestScheduler.parseMarblesAsSubscriptions>; |
@@ -1,37 +0,21 @@ | ||
import { | ||
TestColdObservable, | ||
TestHotObservable, | ||
TestObservable, | ||
} from './src/test-observables'; | ||
export { | ||
getTestScheduler, | ||
initTestScheduler, | ||
resetTestScheduler, | ||
} from './src/scheduler'; | ||
export declare function hot( | ||
marbles: string, | ||
values?: any, | ||
error?: any, | ||
): TestHotObservable; | ||
export declare function cold( | ||
marbles: string, | ||
values?: any, | ||
error?: any, | ||
): TestColdObservable; | ||
import { TestColdObservable, TestHotObservable, TestObservable } from './src/test-observables'; | ||
export { getTestScheduler, initTestScheduler, resetTestScheduler, } from './src/scheduler'; | ||
export declare function hot(marbles: string, values?: any, error?: any): TestHotObservable; | ||
export declare function cold(marbles: string, values?: any, error?: any): TestColdObservable; | ||
export declare function time(marbles: string): number; | ||
declare global { | ||
namespace jasmine { | ||
interface Matchers<T> { | ||
toBeObservable(expected: TestObservable): boolean; | ||
toHaveSubscriptions(marbles: string | string[]): boolean; | ||
namespace jasmine { | ||
interface Matchers<T> { | ||
toBeObservable(expected: TestObservable): boolean; | ||
toHaveSubscriptions(marbles: string | string[]): boolean; | ||
} | ||
} | ||
} | ||
namespace jest { | ||
interface Matchers<R> { | ||
toBeObservable(expected: TestObservable): R; | ||
toHaveSubscriptions(marbles: string | string[]): R; | ||
namespace jest { | ||
interface Matchers<R> { | ||
toBeObservable(expected: TestObservable): R; | ||
toHaveSubscriptions(marbles: string | string[]): R; | ||
} | ||
} | ||
} | ||
} | ||
export declare function addMatchers(): void; | ||
export declare function setupEnvironment(): void; |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.9.0-beta.0", | ||
"version": "0.9.0", | ||
"module": "index.js", | ||
@@ -13,0 +13,0 @@ "es2015": "es6/index.js", |
import { ObservableNotification } from 'rxjs'; | ||
import { TestMessages } from './types'; | ||
export declare function mapSymbolsToNotifications( | ||
marbles: string, | ||
messagesArg: TestMessages, | ||
): { | ||
[key: string]: ObservableNotification<any>; | ||
export declare function mapSymbolsToNotifications(marbles: string, messagesArg: TestMessages): { | ||
[key: string]: ObservableNotification<any>; | ||
}; |
import { ObservableNotification } from 'rxjs'; | ||
import { TestMessages } from './types'; | ||
export declare function unparseMarble( | ||
result: TestMessages, | ||
assignSymbolFn: (a: ObservableNotification<any>) => string, | ||
): string; | ||
export declare function unparseMarble(result: TestMessages, assignSymbolFn: (a: ObservableNotification<any>) => string): string; |
import { Observable } from 'rxjs'; | ||
import { SubscriptionLogs } from './types'; | ||
export declare class TestColdObservable extends Observable<any> { | ||
marbles: string; | ||
values?: | ||
| { | ||
marbles: string; | ||
values?: { | ||
[name: string]: any; | ||
} | ||
| undefined; | ||
error?: any; | ||
constructor( | ||
marbles: string, | ||
values?: | ||
| { | ||
[name: string]: any; | ||
} | ||
| undefined, | ||
error?: any, | ||
); | ||
getSubscriptions(): SubscriptionLogs[]; | ||
} | undefined; | ||
error?: any; | ||
constructor(marbles: string, values?: { | ||
[name: string]: any; | ||
} | undefined, error?: any); | ||
getSubscriptions(): SubscriptionLogs[]; | ||
} | ||
export declare class TestHotObservable extends Observable<any> { | ||
marbles: string; | ||
values?: | ||
| { | ||
marbles: string; | ||
values?: { | ||
[name: string]: any; | ||
} | ||
| undefined; | ||
error?: any; | ||
constructor( | ||
marbles: string, | ||
values?: | ||
| { | ||
[name: string]: any; | ||
} | ||
| undefined, | ||
error?: any, | ||
); | ||
getSubscriptions(): SubscriptionLogs[]; | ||
} | undefined; | ||
error?: any; | ||
constructor(marbles: string, values?: { | ||
[name: string]: any; | ||
} | undefined, error?: any); | ||
getSubscriptions(): SubscriptionLogs[]; | ||
} | ||
export declare type TestObservable = TestColdObservable | TestHotObservable; |
@@ -5,10 +5,6 @@ import { TestScheduler } from 'rxjs/testing'; | ||
*/ | ||
export declare type TestMessages = ReturnType< | ||
typeof TestScheduler.parseMarbles | ||
>; | ||
export declare type TestMessages = ReturnType<typeof TestScheduler.parseMarbles>; | ||
/** | ||
* Exported return type of SubscriptionLog to avoid importing internal APIs. | ||
*/ | ||
export declare type SubscriptionLogs = ReturnType< | ||
typeof TestScheduler.parseMarblesAsSubscriptions | ||
>; | ||
export declare type SubscriptionLogs = ReturnType<typeof TestScheduler.parseMarblesAsSubscriptions>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143307
1542