Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jasmine-marbles

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-marbles - npm Package Compare versions

Comparing version 0.9.0-beta.0 to 0.9.0

44

es6/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc