rxjs-marbles
Advanced tools
Comparing version 6.0.0 to 6.0.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.argsSymbol = void 0; | ||
exports.argsSymbol = Symbol("args"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.assertSubscriptions = exports.assertArgs = void 0; | ||
var args_1 = require("./args"); | ||
@@ -4,0 +5,0 @@ function assertArgs(observable) { |
@@ -13,6 +13,14 @@ "use strict"; | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fakeSchedulers = exports.marbles = exports.cases = exports.configure = void 0; | ||
var ava_1 = require("ava"); | ||
@@ -23,9 +31,10 @@ var cases_1 = require("../cases"); | ||
var marbles_1 = require("../marbles"); | ||
__export(require("../configuration")); | ||
__export(require("../expect")); | ||
__export(require("../fake")); | ||
__exportStar(require("../configuration"), exports); | ||
__exportStar(require("../context"), exports); | ||
__exportStar(require("../expect"), exports); | ||
__exportStar(require("../fake"), exports); | ||
function configure(configuration) { | ||
var factory = function (t) { return ({ | ||
assert: t.truthy.bind(t), | ||
assertDeepEqual: t.deepEqual.bind(t) | ||
assertDeepEqual: t.deepEqual.bind(t), | ||
}); }; | ||
@@ -32,0 +41,0 @@ var configured = marbles_1.configure(function (t) { return (__assign(__assign(__assign({}, configuration_1.defaults()), factory(t)), configuration)); }); |
@@ -118,3 +118,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = void 0;\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
@@ -131,3 +131,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.assertSubscriptions = exports.assertArgs = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
@@ -144,3 +144,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar ava_1 = __webpack_require__(/*! ava */ \"ava\");\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__export(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"));\r\n__export(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"));\r\n__export(__webpack_require__(/*! ../fake */ \"./source/fake.ts\"));\r\nfunction configure(configuration) {\r\n var factory = function (t) { return ({\r\n assert: t.truthy.bind(t),\r\n assertDeepEqual: t.deepEqual.bind(t)\r\n }); };\r\n var configured = marbles_1.configure(function (t) { return (__assign(__assign(__assign({}, configuration_1.defaults()), factory(t)), configuration)); });\r\n var marbles = configured.marbles;\r\n function cases(name, func, cases) {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? ava_1.default.only : c.skip ? ava_1.default.skip : ava_1.default;\r\n t(name + \" / \" + c.name, marbles(function (m, t) { return func(m, c, t); }));\r\n }, cases);\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure({}), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\nfunction fakeSchedulers(fakeTest) {\r\n return fake_1.fakeSchedulers(fakeTest);\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/ava/index.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = exports.marbles = exports.cases = exports.configure = void 0;\r\nvar ava_1 = __webpack_require__(/*! ava */ \"ava\");\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__exportStar(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../context */ \"./source/context.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../fake */ \"./source/fake.ts\"), exports);\r\nfunction configure(configuration) {\r\n var factory = function (t) { return ({\r\n assert: t.truthy.bind(t),\r\n assertDeepEqual: t.deepEqual.bind(t),\r\n }); };\r\n var configured = marbles_1.configure(function (t) { return (__assign(__assign(__assign({}, configuration_1.defaults()), factory(t)), configuration)); });\r\n var marbles = configured.marbles;\r\n function cases(name, func, cases) {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? ava_1.default.only : c.skip ? ava_1.default.skip : ava_1.default;\r\n t(name + \" / \" + c.name, marbles(function (m, t) { return func(m, c, t); }));\r\n }, cases);\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure({}), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\nfunction fakeSchedulers(fakeTest) {\r\n return fake_1.fakeSchedulers(fakeTest);\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/ava/index.ts?"); | ||
@@ -157,3 +157,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports._cases = void 0;\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
@@ -170,3 +170,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.defaults = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true,\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
@@ -183,3 +183,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DeprecatedContext = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler,\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
@@ -196,6 +196,18 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.RunContext = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
/***/ }), | ||
/***/ "./source/context.ts": | ||
/*!***************************!*\ | ||
!*** ./source/context.ts ***! | ||
\***************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context.ts?"); | ||
/***/ }), | ||
/***/ "./source/expect.ts": | ||
@@ -209,3 +221,3 @@ /*!**************************!*\ | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Expect = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
@@ -222,3 +234,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
@@ -235,3 +247,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.marbles = exports.configure = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
@@ -248,3 +260,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observableMatcher = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
@@ -251,0 +263,0 @@ /***/ }), |
@@ -118,3 +118,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = void 0;\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
@@ -131,3 +131,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.assertSubscriptions = exports.assertArgs = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
@@ -144,3 +144,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports._cases = void 0;\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
@@ -157,3 +157,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.defaults = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true,\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
@@ -170,3 +170,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DeprecatedContext = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler,\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
@@ -183,6 +183,18 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.RunContext = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
/***/ }), | ||
/***/ "./source/context.ts": | ||
/*!***************************!*\ | ||
!*** ./source/context.ts ***! | ||
\***************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context.ts?"); | ||
/***/ }), | ||
/***/ "./source/done-subscriber.ts": | ||
@@ -196,3 +208,3 @@ /*!***********************************!*\ | ||
"use strict"; | ||
eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar DoneSubscriber = (function (_super) {\r\n __extends(DoneSubscriber, _super);\r\n function DoneSubscriber(onError, onComplete) {\r\n var _this = _super.call(this, undefined, onError, onComplete) || this;\r\n _this.onError = onError;\r\n return _this;\r\n }\r\n DoneSubscriber.prototype.unsubscribe = function () {\r\n try {\r\n _super.prototype.unsubscribe.call(this);\r\n }\r\n catch (error) {\r\n this.onError(error);\r\n }\r\n };\r\n return DoneSubscriber;\r\n}(rxjs_1.Subscriber));\r\nexports.DoneSubscriber = DoneSubscriber;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/done-subscriber.ts?"); | ||
eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DoneSubscriber = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar DoneSubscriber = (function (_super) {\r\n __extends(DoneSubscriber, _super);\r\n function DoneSubscriber(onError, onComplete) {\r\n var _this = _super.call(this, undefined, onError, onComplete) || this;\r\n _this.onError = onError;\r\n return _this;\r\n }\r\n DoneSubscriber.prototype.unsubscribe = function () {\r\n try {\r\n _super.prototype.unsubscribe.call(this);\r\n }\r\n catch (error) {\r\n this.onError(error);\r\n }\r\n };\r\n return DoneSubscriber;\r\n}(rxjs_1.Subscriber));\r\nexports.DoneSubscriber = DoneSubscriber;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/done-subscriber.ts?"); | ||
@@ -209,3 +221,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Expect = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
@@ -222,3 +234,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
@@ -235,3 +247,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__export(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"));\r\n__export(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"));\r\n__export(__webpack_require__(/*! ../fake */ \"./source/fake.ts\"));\r\n__export(__webpack_require__(/*! ./observe */ \"./source/jasmine/observe.ts\"));\r\nfunction configure(configuration) {\r\n var defaultAssert = configuration_1.defaults().assert;\r\n var marbles = marbles_1.configure(__assign(__assign(__assign({}, configuration_1.defaults()), { assert: function (a, m) {\r\n var expectation = expect(a);\r\n if (expectation.withContext) {\r\n expect(a)\r\n .withContext(m)\r\n .toBeTruthy();\r\n }\r\n else {\r\n defaultAssert(a, m);\r\n }\r\n }, assertDeepEqual: function (a, e) { return expect(a).toEqual(e); } }), configuration)).marbles;\r\n function cases(name, func, cases) {\r\n describe(name, function () {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? fit : c.skip ? xit : it;\r\n if (func.length > 2) {\r\n t(c.name, marbles(function (m, second) {\r\n var rest = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n rest[_i - 2] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c, second], rest));\r\n }));\r\n }\r\n else {\r\n t(c.name, marbles(function (m) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c], rest));\r\n }));\r\n }\r\n }, cases);\r\n });\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure({}), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\nfunction fakeSchedulers(fakeTest) {\r\n return fake_1.fakeSchedulers(fakeTest);\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jasmine/index.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = exports.marbles = exports.cases = exports.configure = void 0;\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__exportStar(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../context */ \"./source/context.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../fake */ \"./source/fake.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ./observe */ \"./source/jasmine/observe.ts\"), exports);\r\nfunction configure(configuration) {\r\n var defaultAssert = configuration_1.defaults().assert;\r\n var marbles = marbles_1.configure(__assign(__assign(__assign({}, configuration_1.defaults()), { assert: function (a, m) {\r\n var expectation = expect(a);\r\n if (expectation.withContext) {\r\n expect(a).withContext(m).toBeTruthy();\r\n }\r\n else {\r\n defaultAssert(a, m);\r\n }\r\n }, assertDeepEqual: function (a, e) { return expect(a).toEqual(e); } }), configuration)).marbles;\r\n function cases(name, func, cases) {\r\n describe(name, function () {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? fit : c.skip ? xit : it;\r\n if (func.length > 2) {\r\n t(c.name, marbles(function (m, second) {\r\n var rest = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n rest[_i - 2] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c, second], rest));\r\n }));\r\n }\r\n else {\r\n t(c.name, marbles(function (m) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c], rest));\r\n }));\r\n }\r\n }, cases);\r\n });\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure({}), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\nfunction fakeSchedulers(fakeTest) {\r\n return fake_1.fakeSchedulers(fakeTest);\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jasmine/index.ts?"); | ||
@@ -248,3 +260,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar done_subscriber_1 = __webpack_require__(/*! ../done-subscriber */ \"./source/done-subscriber.ts\");\r\nfunction observe(observableTest) {\r\n return function (done) {\r\n var subscriber = new done_subscriber_1.DoneSubscriber(done.fail, done);\r\n observableTest().subscribe(subscriber);\r\n };\r\n}\r\nexports.observe = observe;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jasmine/observe.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observe = void 0;\r\nvar done_subscriber_1 = __webpack_require__(/*! ../done-subscriber */ \"./source/done-subscriber.ts\");\r\nfunction observe(observableTest) {\r\n return function (done) {\r\n var subscriber = new done_subscriber_1.DoneSubscriber(done.fail, done);\r\n observableTest().subscribe(subscriber);\r\n };\r\n}\r\nexports.observe = observe;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jasmine/observe.ts?"); | ||
@@ -261,3 +273,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.marbles = exports.configure = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
@@ -274,3 +286,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observableMatcher = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
@@ -277,0 +289,0 @@ /***/ }), |
@@ -118,3 +118,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = void 0;\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
@@ -131,3 +131,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.assertSubscriptions = exports.assertArgs = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
@@ -144,3 +144,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports._cases = void 0;\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
@@ -157,3 +157,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.defaults = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true,\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
@@ -170,3 +170,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DeprecatedContext = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler,\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
@@ -183,6 +183,18 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.RunContext = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
/***/ }), | ||
/***/ "./source/context.ts": | ||
/*!***************************!*\ | ||
!*** ./source/context.ts ***! | ||
\***************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context.ts?"); | ||
/***/ }), | ||
/***/ "./source/done-subscriber.ts": | ||
@@ -196,3 +208,3 @@ /*!***********************************!*\ | ||
"use strict"; | ||
eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar DoneSubscriber = (function (_super) {\r\n __extends(DoneSubscriber, _super);\r\n function DoneSubscriber(onError, onComplete) {\r\n var _this = _super.call(this, undefined, onError, onComplete) || this;\r\n _this.onError = onError;\r\n return _this;\r\n }\r\n DoneSubscriber.prototype.unsubscribe = function () {\r\n try {\r\n _super.prototype.unsubscribe.call(this);\r\n }\r\n catch (error) {\r\n this.onError(error);\r\n }\r\n };\r\n return DoneSubscriber;\r\n}(rxjs_1.Subscriber));\r\nexports.DoneSubscriber = DoneSubscriber;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/done-subscriber.ts?"); | ||
eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DoneSubscriber = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar DoneSubscriber = (function (_super) {\r\n __extends(DoneSubscriber, _super);\r\n function DoneSubscriber(onError, onComplete) {\r\n var _this = _super.call(this, undefined, onError, onComplete) || this;\r\n _this.onError = onError;\r\n return _this;\r\n }\r\n DoneSubscriber.prototype.unsubscribe = function () {\r\n try {\r\n _super.prototype.unsubscribe.call(this);\r\n }\r\n catch (error) {\r\n this.onError(error);\r\n }\r\n };\r\n return DoneSubscriber;\r\n}(rxjs_1.Subscriber));\r\nexports.DoneSubscriber = DoneSubscriber;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/done-subscriber.ts?"); | ||
@@ -209,3 +221,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Expect = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
@@ -222,3 +234,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
@@ -235,3 +247,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nfunction fakeSchedulers(fakeTest) {\r\n var fakeTime = 0;\r\n return fake_1.fakeSchedulers(function () {\r\n return fakeTest(function (milliseconds) {\r\n fakeTime += milliseconds;\r\n jest.advanceTimersByTime(milliseconds);\r\n });\r\n }, function () { return fakeTime; });\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jest/fake.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = void 0;\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nfunction fakeSchedulers(fakeTest) {\r\n var fakeTime = 0;\r\n return fake_1.fakeSchedulers(function () {\r\n return fakeTest(function (milliseconds) {\r\n fakeTime += milliseconds;\r\n jest.advanceTimersByTime(milliseconds);\r\n });\r\n }, function () { return fakeTime; });\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jest/fake.ts?"); | ||
@@ -248,3 +260,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__export(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"));\r\n__export(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"));\r\n__export(__webpack_require__(/*! ./fake */ \"./source/jest/fake.ts\"));\r\n__export(__webpack_require__(/*! ./observe */ \"./source/jest/observe.ts\"));\r\nfunction configure(configuration) {\r\n var marbles = marbles_1.configure(__assign(__assign(__assign({}, configuration_1.defaults()), { assertDeepEqual: function (a, e) { return expect(a).toStrictEqual(e); }, frameworkMatcher: true }), configuration)).marbles;\r\n function cases(name, func, cases) {\r\n describe(name, function () {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? test.only : c.skip ? test.skip : test;\r\n if (func.length > 2) {\r\n t(c.name, marbles(function (m, second) {\r\n var rest = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n rest[_i - 2] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c, second], rest));\r\n }));\r\n }\r\n else {\r\n t(c.name, marbles(function (m) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c], rest));\r\n }));\r\n }\r\n }, cases);\r\n });\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure({}), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jest/index.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.marbles = exports.cases = exports.configure = void 0;\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__exportStar(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../context */ \"./source/context.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ./fake */ \"./source/jest/fake.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ./observe */ \"./source/jest/observe.ts\"), exports);\r\nfunction configure(configuration) {\r\n var marbles = marbles_1.configure(__assign(__assign(__assign({}, configuration_1.defaults()), { assertDeepEqual: function (a, e) { return expect(a).toStrictEqual(e); }, frameworkMatcher: true }), configuration)).marbles;\r\n function cases(name, func, cases) {\r\n describe(name, function () {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? test.only : c.skip ? test.skip : test;\r\n if (func.length > 2) {\r\n t(c.name, marbles(function (m, second) {\r\n var rest = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n rest[_i - 2] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c, second], rest));\r\n }));\r\n }\r\n else {\r\n t(c.name, marbles(function (m) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c], rest));\r\n }));\r\n }\r\n }, cases);\r\n });\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure({}), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jest/index.ts?"); | ||
@@ -261,3 +273,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar done_subscriber_1 = __webpack_require__(/*! ../done-subscriber */ \"./source/done-subscriber.ts\");\r\nfunction observe(observableTest) {\r\n return function (done) {\r\n var subscriber = new done_subscriber_1.DoneSubscriber(done.fail, done);\r\n observableTest().subscribe(subscriber);\r\n };\r\n}\r\nexports.observe = observe;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jest/observe.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observe = void 0;\r\nvar done_subscriber_1 = __webpack_require__(/*! ../done-subscriber */ \"./source/done-subscriber.ts\");\r\nfunction observe(observableTest) {\r\n return function (done) {\r\n var subscriber = new done_subscriber_1.DoneSubscriber(done.fail, done);\r\n observableTest().subscribe(subscriber);\r\n };\r\n}\r\nexports.observe = observe;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/jest/observe.ts?"); | ||
@@ -274,3 +286,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.marbles = exports.configure = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
@@ -287,3 +299,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observableMatcher = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
@@ -290,0 +302,0 @@ /***/ }), |
@@ -118,3 +118,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = void 0;\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
@@ -131,3 +131,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.assertSubscriptions = exports.assertArgs = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
@@ -144,3 +144,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports._cases = void 0;\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
@@ -157,3 +157,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.defaults = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true,\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
@@ -170,3 +170,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DeprecatedContext = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler,\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
@@ -183,6 +183,18 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.RunContext = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
/***/ }), | ||
/***/ "./source/context.ts": | ||
/*!***************************!*\ | ||
!*** ./source/context.ts ***! | ||
\***************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context.ts?"); | ||
/***/ }), | ||
/***/ "./source/done-subscriber.ts": | ||
@@ -196,3 +208,3 @@ /*!***********************************!*\ | ||
"use strict"; | ||
eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar DoneSubscriber = (function (_super) {\r\n __extends(DoneSubscriber, _super);\r\n function DoneSubscriber(onError, onComplete) {\r\n var _this = _super.call(this, undefined, onError, onComplete) || this;\r\n _this.onError = onError;\r\n return _this;\r\n }\r\n DoneSubscriber.prototype.unsubscribe = function () {\r\n try {\r\n _super.prototype.unsubscribe.call(this);\r\n }\r\n catch (error) {\r\n this.onError(error);\r\n }\r\n };\r\n return DoneSubscriber;\r\n}(rxjs_1.Subscriber));\r\nexports.DoneSubscriber = DoneSubscriber;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/done-subscriber.ts?"); | ||
eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DoneSubscriber = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar DoneSubscriber = (function (_super) {\r\n __extends(DoneSubscriber, _super);\r\n function DoneSubscriber(onError, onComplete) {\r\n var _this = _super.call(this, undefined, onError, onComplete) || this;\r\n _this.onError = onError;\r\n return _this;\r\n }\r\n DoneSubscriber.prototype.unsubscribe = function () {\r\n try {\r\n _super.prototype.unsubscribe.call(this);\r\n }\r\n catch (error) {\r\n this.onError(error);\r\n }\r\n };\r\n return DoneSubscriber;\r\n}(rxjs_1.Subscriber));\r\nexports.DoneSubscriber = DoneSubscriber;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/done-subscriber.ts?"); | ||
@@ -209,3 +221,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Expect = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
@@ -222,3 +234,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
@@ -235,3 +247,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.marbles = exports.configure = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
@@ -248,3 +260,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observableMatcher = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
@@ -261,3 +273,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__export(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"));\r\n__export(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"));\r\n__export(__webpack_require__(/*! ./observe */ \"./source/mocha/observe.ts\"));\r\nfunction configure(configuration) {\r\n var marbles = marbles_1.configure(configuration).marbles;\r\n function cases(name, func, cases) {\r\n describe(name, function () {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? it.only : c.skip ? it.skip : it;\r\n if (func.length > 2) {\r\n t(c.name, marbles(function (m, second) {\r\n var rest = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n rest[_i - 2] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c, second], rest));\r\n }));\r\n }\r\n else {\r\n t(c.name, marbles(function (m) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c], rest));\r\n }));\r\n }\r\n }, cases);\r\n });\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure(configuration_1.defaults()), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\nfunction fakeSchedulers(fakeTest) {\r\n return fake_1.fakeSchedulers(fakeTest);\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/mocha/index.ts?"); | ||
eval("\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = exports.marbles = exports.cases = exports.configure = void 0;\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__exportStar(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../context */ \"./source/context.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ./observe */ \"./source/mocha/observe.ts\"), exports);\r\nfunction configure(configuration) {\r\n var marbles = marbles_1.configure(configuration).marbles;\r\n function cases(name, func, cases) {\r\n describe(name, function () {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? it.only : c.skip ? it.skip : it;\r\n if (func.length > 2) {\r\n t(c.name, marbles(function (m, second) {\r\n var rest = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n rest[_i - 2] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c, second], rest));\r\n }));\r\n }\r\n else {\r\n t(c.name, marbles(function (m) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return func.apply(void 0, __spreadArrays([m, c], rest));\r\n }));\r\n }\r\n }, cases);\r\n });\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure(configuration_1.defaults()), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\nfunction fakeSchedulers(fakeTest) {\r\n return fake_1.fakeSchedulers(fakeTest);\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/mocha/index.ts?"); | ||
@@ -274,3 +286,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar done_subscriber_1 = __webpack_require__(/*! ../done-subscriber */ \"./source/done-subscriber.ts\");\r\nfunction observe(observableTest) {\r\n return function (done) {\r\n var subscriber = new done_subscriber_1.DoneSubscriber(done, done);\r\n observableTest().subscribe(subscriber);\r\n };\r\n}\r\nexports.observe = observe;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/mocha/observe.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observe = void 0;\r\nvar done_subscriber_1 = __webpack_require__(/*! ../done-subscriber */ \"./source/done-subscriber.ts\");\r\nfunction observe(observableTest) {\r\n return function (done) {\r\n var subscriber = new done_subscriber_1.DoneSubscriber(done, done);\r\n observableTest().subscribe(subscriber);\r\n };\r\n}\r\nexports.observe = observe;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/mocha/observe.ts?"); | ||
@@ -277,0 +289,0 @@ /***/ }), |
@@ -118,3 +118,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = void 0;\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
@@ -131,3 +131,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.assertSubscriptions = exports.assertArgs = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
@@ -144,3 +144,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports._cases = void 0;\r\nvar getPrototypeOf = Object.getPrototypeOf ||\r\n function (obj) {\r\n return obj.__proto__;\r\n };\r\nfunction _cases(adapter, cases) {\r\n if (getPrototypeOf(cases) !== Array.prototype) {\r\n cases = Object.keys(cases).map(function (key) { return (__assign(__assign({}, cases[key]), { name: key })); });\r\n }\r\n cases.forEach(adapter);\r\n}\r\nexports._cases = _cases;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/cases.ts?"); | ||
@@ -157,3 +157,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.defaults = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true,\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
@@ -170,3 +170,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DeprecatedContext = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler,\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
@@ -183,6 +183,18 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.RunContext = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
/***/ }), | ||
/***/ "./source/context.ts": | ||
/*!***************************!*\ | ||
!*** ./source/context.ts ***! | ||
\***************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context.ts?"); | ||
/***/ }), | ||
/***/ "./source/expect.ts": | ||
@@ -196,3 +208,3 @@ /*!**************************!*\ | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Expect = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
@@ -209,3 +221,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nfunction fakeSchedulers(fakeTest, now) {\r\n return function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var hasOwnSchedule = rxjs_1.asapScheduler.hasOwnProperty(\"schedule\");\r\n if (hasOwnSchedule) {\r\n console.warn(\"asapScheduler.schedule appears to have been patched outside of fakeSchedulers.\");\r\n }\r\n var origSchedule = rxjs_1.asapScheduler.schedule;\r\n var origNow = rxjs_1.asyncScheduler.now;\r\n try {\r\n rxjs_1.asapScheduler.schedule = rxjs_1.asyncScheduler.schedule.bind(rxjs_1.asyncScheduler);\r\n rxjs_1.asyncScheduler.now = now || (function () { return Date.now(); });\r\n return fakeTest.apply(void 0, args);\r\n }\r\n finally {\r\n if (hasOwnSchedule) {\r\n rxjs_1.asapScheduler.schedule = origSchedule;\r\n }\r\n else {\r\n delete rxjs_1.asapScheduler.schedule;\r\n }\r\n rxjs_1.asyncScheduler.now = origNow;\r\n }\r\n };\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/fake.ts?"); | ||
@@ -222,3 +234,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.marbles = exports.configure = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
@@ -235,3 +247,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observableMatcher = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
@@ -248,3 +260,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar tape = __webpack_require__(/*! tape */ \"tape\");\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__export(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"));\r\n__export(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"));\r\n__export(__webpack_require__(/*! ../fake */ \"./source/fake.ts\"));\r\nfunction configure(configuration) {\r\n var factory = function (t) { return ({\r\n assert: t.ok.bind(t),\r\n assertDeepEqual: t.deepEqual.bind(t)\r\n }); };\r\n var configured = marbles_1.configure(function (t) { return (__assign(__assign(__assign({}, configuration_1.defaults()), factory(t)), configuration)); });\r\n var marbles = configured.marbles;\r\n function cases(name, func, cases) {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? tape.only : c.skip ? tape.skip : tape;\r\n t(name + \" / \" + c.name, marbles(function (m, t) { return func(m, c, t); }));\r\n }, cases);\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure({}), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\nfunction fakeSchedulers(fakeTest) {\r\n return fake_1.fakeSchedulers(fakeTest);\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/tape/index.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.fakeSchedulers = exports.marbles = exports.cases = exports.configure = void 0;\r\nvar tape = __webpack_require__(/*! tape */ \"tape\");\r\nvar cases_1 = __webpack_require__(/*! ../cases */ \"./source/cases.ts\");\r\nvar configuration_1 = __webpack_require__(/*! ../configuration */ \"./source/configuration.ts\");\r\nvar fake_1 = __webpack_require__(/*! ../fake */ \"./source/fake.ts\");\r\nvar marbles_1 = __webpack_require__(/*! ../marbles */ \"./source/marbles.ts\");\r\n__exportStar(__webpack_require__(/*! ../configuration */ \"./source/configuration.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../context */ \"./source/context.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../expect */ \"./source/expect.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ../fake */ \"./source/fake.ts\"), exports);\r\nfunction configure(configuration) {\r\n var factory = function (t) { return ({\r\n assert: t.ok.bind(t),\r\n assertDeepEqual: t.deepEqual.bind(t),\r\n }); };\r\n var configured = marbles_1.configure(function (t) { return (__assign(__assign(__assign({}, configuration_1.defaults()), factory(t)), configuration)); });\r\n var marbles = configured.marbles;\r\n function cases(name, func, cases) {\r\n cases_1._cases(function (c) {\r\n var t = c.only ? tape.only : c.skip ? tape.skip : tape;\r\n t(name + \" / \" + c.name, marbles(function (m, t) { return func(m, c, t); }));\r\n }, cases);\r\n }\r\n return { cases: cases, marbles: marbles };\r\n}\r\nexports.configure = configure;\r\nvar _a = configure({}), cases = _a.cases, marbles = _a.marbles;\r\nexports.cases = cases;\r\nexports.marbles = marbles;\r\nfunction fakeSchedulers(fakeTest) {\r\n return fake_1.fakeSchedulers(fakeTest);\r\n}\r\nexports.fakeSchedulers = fakeSchedulers;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/tape/index.ts?"); | ||
@@ -251,0 +263,0 @@ /***/ }), |
@@ -118,3 +118,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.argsSymbol = void 0;\r\nexports.argsSymbol = Symbol(\"args\");\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/args.ts?"); | ||
@@ -131,3 +131,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.assertSubscriptions = exports.assertArgs = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nfunction assertArgs(observable) {\r\n if (!observable[args_1.argsSymbol]) {\r\n throw new Error(\"Expected a hot or cold test observable.\");\r\n }\r\n}\r\nexports.assertArgs = assertArgs;\r\nfunction assertSubscriptions(observable) {\r\n if (!observable[\"subscriptions\"]) {\r\n throw new Error(\"Expected a hot or cold test observable with subscriptions.\");\r\n }\r\n}\r\nexports.assertSubscriptions = assertSubscriptions;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/assert.ts?"); | ||
@@ -144,3 +144,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.defaults = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nvar defaultConfiguration = {\r\n assert: defaultAssert,\r\n assertDeepEqual: defaultAssertDeepEqual,\r\n frameworkMatcher: false,\r\n run: true,\r\n};\r\nfunction defaults() {\r\n return __assign({}, defaultConfiguration);\r\n}\r\nexports.defaults = defaults;\r\nfunction defaultAssert(value, message) {\r\n if (value) {\r\n return;\r\n }\r\n throw new Error(message);\r\n}\r\nfunction defaultAssertDeepEqual(a, b) {\r\n if (fast_equals_1.circularDeepEqual(a, b)) {\r\n return;\r\n }\r\n throw new Error(\"Expected \" + toString(a) + \" to equal \" + toString(b) + \".\");\r\n}\r\nfunction toString(value) {\r\n if (value === null) {\r\n return \"null\";\r\n }\r\n else if (value === undefined) {\r\n return \"undefined\";\r\n }\r\n return value.toString();\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/configuration.ts?"); | ||
@@ -157,3 +157,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.DeprecatedContext = void 0;\r\nvar rxjs_1 = __webpack_require__(/*! rxjs */ \"rxjs\");\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nvar DeprecatedContext = (function () {\r\n function DeprecatedContext(configuration_) {\r\n this.configuration_ = configuration_;\r\n this.autoFlush = true;\r\n this.bindings_ = [];\r\n this.frameTimeFactor_ = undefined;\r\n this.reframable_ = true;\r\n }\r\n Object.defineProperty(DeprecatedContext.prototype, \"scheduler\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.scheduler_) {\r\n this.scheduler_ = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, _this.configuration_.assert, _this.configuration_.assertDeepEqual, _this.configuration_.frameworkMatcher);\r\n });\r\n }\r\n return this.scheduler_;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n DeprecatedContext.prototype.bind = function () {\r\n var _this = this;\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n if (this.bindings_.length !== 0) {\r\n throw new Error(\"Schedulers already bound.\");\r\n }\r\n if (schedulers.length === 0) {\r\n schedulers = [\r\n rxjs_1.animationFrameScheduler,\r\n rxjs_1.asapScheduler,\r\n rxjs_1.asyncScheduler,\r\n rxjs_1.queueScheduler,\r\n ];\r\n }\r\n this.bindings_ = schedulers.map(function (instance) {\r\n var now = instance.hasOwnProperty(\"now\") ? instance.now : undefined;\r\n instance.now = function () { return _this.scheduler.now(); };\r\n var schedule = instance.hasOwnProperty(\"schedule\")\r\n ? instance.schedule\r\n : undefined;\r\n instance.schedule = function (work, delay, state) {\r\n return _this.scheduler.schedule(work, delay, state);\r\n };\r\n return { instance: instance, now: now, schedule: schedule };\r\n });\r\n };\r\n DeprecatedContext.prototype.cold = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createColdObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.configure = function (configuration) {\r\n if (this.scheduler_) {\r\n throw new Error(\"Scheduler already created; call configure before using other context methods and properties.\");\r\n }\r\n this.configuration_ = __assign(__assign({}, this.configuration_), configuration);\r\n };\r\n DeprecatedContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var scheduler = this.scheduler;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n scheduler.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n scheduler.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n scheduler.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n scheduler.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n DeprecatedContext.prototype.expect = function (actual, subscription) {\r\n var scheduler = this.scheduler;\r\n return new expect_1.Expect(actual, scheduler, subscription);\r\n };\r\n DeprecatedContext.prototype.flush = function () {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n scheduler.flush();\r\n };\r\n DeprecatedContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var scheduler = this.scheduler;\r\n scheduler.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n DeprecatedContext.prototype.hot = function (marbles, values, error) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n var observable = scheduler.createHotObservable(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n DeprecatedContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n if (!this.reframable_) {\r\n throw new Error(\"Cannot reframe; scheduler already used.\");\r\n }\r\n if (maxTime === undefined) {\r\n maxTime = timePerFrame * 75;\r\n }\r\n this.frameTimeFactor_ =\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor ||\r\n testing_1.TestScheduler.frameTimeFactor;\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = timePerFrame;\r\n testing_1.TestScheduler.frameTimeFactor = timePerFrame;\r\n var scheduler = this.scheduler;\r\n scheduler.maxFrames = maxTime;\r\n };\r\n DeprecatedContext.prototype.teardown = function () {\r\n try {\r\n if (this.autoFlush) {\r\n this.scheduler.flush();\r\n }\r\n }\r\n finally {\r\n this.bindings_.forEach(function (_a) {\r\n var instance = _a.instance, now = _a.now, schedule = _a.schedule;\r\n if (now) {\r\n instance.now = now;\r\n }\r\n else {\r\n delete instance.now;\r\n }\r\n if (schedule) {\r\n instance.schedule = schedule;\r\n }\r\n else {\r\n delete instance.schedule;\r\n }\r\n });\r\n if (this.frameTimeFactor_) {\r\n rxjs_1.VirtualTimeScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n testing_1.TestScheduler.frameTimeFactor = this.frameTimeFactor_;\r\n }\r\n }\r\n };\r\n DeprecatedContext.prototype.time = function (marbles) {\r\n var scheduler = this.scheduler;\r\n this.reframable_ = false;\r\n return scheduler.createTime(marbles);\r\n };\r\n return DeprecatedContext;\r\n}());\r\nexports.DeprecatedContext = DeprecatedContext;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-deprecated.ts?"); | ||
@@ -170,6 +170,18 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.RunContext = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar expect_1 = __webpack_require__(/*! ./expect */ \"./source/expect.ts\");\r\nvar RunContext = (function () {\r\n function RunContext(scheduler, helpers_) {\r\n this.scheduler = scheduler;\r\n this.helpers_ = helpers_;\r\n }\r\n Object.defineProperty(RunContext.prototype, \"autoFlush\", {\r\n get: function () {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n set: function (value) {\r\n throw notSupported(\"autoFlush\");\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n RunContext.prototype.bind = function () {\r\n var schedulers = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n schedulers[_i] = arguments[_i];\r\n }\r\n throw notSupported(\"bind\");\r\n };\r\n RunContext.prototype.cold = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.cold(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.configure = function (configuration) {\r\n throw notSupported(\"configure\");\r\n };\r\n RunContext.prototype.equal = function (actual) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n var helpers_ = this.helpers_;\r\n var a0 = args[0], a1 = args[1], a2 = args[2], a3 = args[3];\r\n if (a1 && typeof a1 === \"string\") {\r\n helpers_.expectObservable(actual, a0).toBe(a1, a2, a3);\r\n }\r\n else if (a1 && a1[args_1.argsSymbol]) {\r\n assert_1.assertArgs(a1);\r\n var _a = a1[args_1.argsSymbol], error = _a.error, marbles = _a.marbles, values = _a.values;\r\n helpers_.expectObservable(actual, a0).toBe(marbles, values, error);\r\n }\r\n else if (typeof a0 === \"string\") {\r\n helpers_.expectObservable(actual).toBe(a0, a1, a2);\r\n }\r\n else {\r\n assert_1.assertArgs(a0);\r\n var _b = a0[args_1.argsSymbol], error = _b.error, marbles = _b.marbles, values = _b.values;\r\n helpers_.expectObservable(actual).toBe(marbles, values, error);\r\n }\r\n };\r\n RunContext.prototype.expect = function (actual, subscription) {\r\n var helpers_ = this.helpers_;\r\n return new expect_1.Expect(actual, helpers_, subscription);\r\n };\r\n RunContext.prototype.flush = function () {\r\n this.helpers_.flush();\r\n };\r\n RunContext.prototype.has = function (actual, expected) {\r\n assert_1.assertSubscriptions(actual);\r\n var helpers_ = this.helpers_;\r\n helpers_.expectSubscriptions(actual.subscriptions).toBe(expected);\r\n };\r\n RunContext.prototype.hot = function (marbles, values, error) {\r\n var helpers_ = this.helpers_;\r\n var observable = helpers_.hot(marbles, values, error);\r\n observable[args_1.argsSymbol] = { error: error, marbles: marbles, values: values };\r\n return observable;\r\n };\r\n RunContext.prototype.reframe = function (timePerFrame, maxTime) {\r\n throw notSupported(\"reframe\");\r\n };\r\n RunContext.prototype.teardown = function () {\r\n throw notSupported(\"teardown\");\r\n };\r\n RunContext.prototype.time = function (marbles) {\r\n var messages = testing_1.TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\r\n var complete = messages.find(function (_a) {\r\n var notification = _a.notification;\r\n return notification.kind === \"C\";\r\n });\r\n if (complete) {\r\n return complete.frame;\r\n }\r\n return this.scheduler.createTime(marbles);\r\n };\r\n return RunContext;\r\n}());\r\nexports.RunContext = RunContext;\r\nfunction notSupported(name) {\r\n return new Error(name + \" is not supported when using the latest TestScheduler. For the deprecated behaviour, use 'const { marbles } = configure({ run: false })'.\");\r\n}\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context-run.ts?"); | ||
/***/ }), | ||
/***/ "./source/context.ts": | ||
/*!***************************!*\ | ||
!*** ./source/context.ts ***! | ||
\***************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/context.ts?"); | ||
/***/ }), | ||
/***/ "./source/expect.ts": | ||
@@ -183,3 +195,3 @@ /*!**************************!*\ | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Expect = void 0;\r\nvar args_1 = __webpack_require__(/*! ./args */ \"./source/args.ts\");\r\nvar assert_1 = __webpack_require__(/*! ./assert */ \"./source/assert.ts\");\r\nvar Expect = (function () {\r\n function Expect(actual, helpers, subscription) {\r\n this.actual = actual;\r\n this.helpers = helpers;\r\n this.subscription = subscription;\r\n }\r\n Expect.prototype.toBeObservable = function (expected, values, error) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers, subscription = _a.subscription;\r\n if (typeof expected === \"string\") {\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(expected, values, error);\r\n }\r\n else {\r\n assert_1.assertArgs(expected);\r\n var _b = expected[args_1.argsSymbol], error_1 = _b.error, marbles = _b.marbles, values_1 = _b.values;\r\n helpers\r\n .expectObservable(actual, subscription)\r\n .toBe(marbles, values_1, error_1);\r\n }\r\n };\r\n Expect.prototype.toHaveSubscriptions = function (expected) {\r\n var _a = this, actual = _a.actual, helpers = _a.helpers;\r\n assert_1.assertSubscriptions(actual);\r\n var subscriptions = actual.subscriptions;\r\n helpers.expectSubscriptions(subscriptions).toBe(expected);\r\n };\r\n return Expect;\r\n}());\r\nexports.Expect = Expect;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/expect.ts?"); | ||
@@ -196,3 +208,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n__export(__webpack_require__(/*! ./configuration */ \"./source/configuration.ts\"));\r\n__export(__webpack_require__(/*! ./expect */ \"./source/expect.ts\"));\r\n__export(__webpack_require__(/*! ./marbles */ \"./source/marbles.ts\"));\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/index.ts?"); | ||
eval("\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n__exportStar(__webpack_require__(/*! ./configuration */ \"./source/configuration.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ./context */ \"./source/context.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ./expect */ \"./source/expect.ts\"), exports);\r\n__exportStar(__webpack_require__(/*! ./marbles */ \"./source/marbles.ts\"), exports);\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/index.ts?"); | ||
@@ -209,3 +221,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.marbles = exports.configure = void 0;\r\nvar testing_1 = __webpack_require__(/*! rxjs/testing */ \"rxjs/testing\");\r\nvar configuration_1 = __webpack_require__(/*! ./configuration */ \"./source/configuration.ts\");\r\nvar context_deprecated_1 = __webpack_require__(/*! ./context-deprecated */ \"./source/context-deprecated.ts\");\r\nvar context_run_1 = __webpack_require__(/*! ./context-run */ \"./source/context-run.ts\");\r\nvar matcher_1 = __webpack_require__(/*! ./matcher */ \"./source/matcher.ts\");\r\nfunction configure(configurationOrFactory) {\r\n function deriveConfiguration() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n var explicit = typeof configurationOrFactory === \"function\"\r\n ? configurationOrFactory.apply(void 0, args) : configurationOrFactory;\r\n return __assign(__assign({}, configuration_1.defaults()), explicit);\r\n }\r\n function _marbles(func) {\r\n var wrapper = function () {\r\n var _this = this;\r\n var rest = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n rest[_i] = arguments[_i];\r\n }\r\n var configuration = deriveConfiguration.apply(void 0, rest);\r\n if (configuration.run) {\r\n var scheduler_1 = new testing_1.TestScheduler(function (actual, expected) {\r\n return matcher_1.observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher);\r\n });\r\n return scheduler_1.run(function (helpers) {\r\n return func.call.apply(func, __spreadArrays([_this, new context_run_1.RunContext(scheduler_1, helpers)], rest));\r\n });\r\n }\r\n var context = new context_deprecated_1.DeprecatedContext(configuration);\r\n try {\r\n return func.call.apply(func, __spreadArrays([this, context], rest));\r\n }\r\n finally {\r\n context.teardown();\r\n }\r\n };\r\n if (func.length > 1) {\r\n return function (first) {\r\n var rest = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n rest[_i - 1] = arguments[_i];\r\n }\r\n return wrapper.apply(void 0, __spreadArrays([first], rest));\r\n };\r\n }\r\n return wrapper;\r\n }\r\n return { marbles: _marbles };\r\n}\r\nexports.configure = configure;\r\nexports.marbles = configure(configuration_1.defaults()).marbles;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/marbles.ts?"); | ||
@@ -222,3 +234,3 @@ /***/ }), | ||
"use strict"; | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.observableMatcher = void 0;\r\nvar fast_equals_1 = __webpack_require__(/*! fast-equals */ \"./node_modules/fast-equals/dist/fast-equals.js\");\r\nfunction stringify(x) {\r\n if (x === undefined) {\r\n return \"undefined\";\r\n }\r\n return JSON.stringify(x, function (key, value) {\r\n if (Array.isArray(value)) {\r\n return (\"[\" +\r\n value.map(function (i) {\r\n return \"\\n\\t\" + stringify(i);\r\n }) +\r\n \"\\n]\");\r\n }\r\n return value;\r\n })\r\n .replace(/\\\\\"/g, '\"')\r\n .replace(/\\\\t/g, \"\\t\")\r\n .replace(/\\\\n/g, \"\\n\");\r\n}\r\nfunction deleteErrorNotificationStack(marble) {\r\n var notification = marble.notification;\r\n if (notification) {\r\n var kind = notification.kind, error = notification.error;\r\n if (kind === \"E\" && error instanceof Error) {\r\n notification.error = { name: error.name, message: error.message };\r\n }\r\n }\r\n return marble;\r\n}\r\nfunction observableMatcher(actual, expected, assert, assertDeepEqual, frameworkMatcher) {\r\n if (Array.isArray(actual) && Array.isArray(expected)) {\r\n actual = actual.map(deleteErrorNotificationStack);\r\n expected = expected.map(deleteErrorNotificationStack);\r\n if (frameworkMatcher) {\r\n assertDeepEqual(actual, expected);\r\n }\r\n else {\r\n var passed = fast_equals_1.circularDeepEqual(actual, expected);\r\n if (passed) {\r\n assert(true, \"\");\r\n return;\r\n }\r\n var message_1 = \"\\nExpected \\n\";\r\n actual.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n message_1 += \"\\t\\nto deep equal \\n\";\r\n expected.forEach(function (x) { return (message_1 += \"\\t\" + stringify(x) + \"\\n\"); });\r\n assert(passed, message_1);\r\n }\r\n }\r\n else {\r\n assertDeepEqual(actual, expected);\r\n }\r\n}\r\nexports.observableMatcher = observableMatcher;\r\n\n\n//# sourceURL=webpack://rxjsMarbles/./source/matcher.ts?"); | ||
@@ -225,0 +237,0 @@ /***/ }), |
@@ -14,2 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._cases = void 0; | ||
var getPrototypeOf = Object.getPrototypeOf || | ||
@@ -16,0 +17,0 @@ function (obj) { |
@@ -0,1 +1,8 @@ | ||
<a name="6.0.1"></a> | ||
## [6.0.1](https://github.com/cartant/rxjs-marbles/compare/v6.0.0...v6.0.1) (2020-06-22) | ||
### Changes | ||
* Added `rxjs-report-usage`. | ||
<a name="6.0.0"></a> | ||
@@ -2,0 +9,0 @@ ## [6.0.0](https://github.com/cartant/rxjs-marbles/compare/v5.0.6...v6.0.0) (2020-03-26) |
@@ -14,2 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.defaults = void 0; | ||
var fast_equals_1 = require("fast-equals"); | ||
@@ -20,3 +21,3 @@ var defaultConfiguration = { | ||
frameworkMatcher: false, | ||
run: true | ||
run: true, | ||
}; | ||
@@ -23,0 +24,0 @@ function defaults() { |
@@ -14,2 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DeprecatedContext = void 0; | ||
var rxjs_1 = require("rxjs"); | ||
@@ -39,3 +40,3 @@ var testing_1 = require("rxjs/testing"); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -57,3 +58,3 @@ }); | ||
rxjs_1.asyncScheduler, | ||
rxjs_1.queueScheduler | ||
rxjs_1.queueScheduler, | ||
]; | ||
@@ -60,0 +61,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RunContext = void 0; | ||
var testing_1 = require("rxjs/testing"); | ||
@@ -19,3 +20,3 @@ var args_1 = require("./args"); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -22,0 +23,0 @@ }); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DoneSubscriber = void 0; | ||
var rxjs_1 = require("rxjs"); | ||
@@ -18,0 +19,0 @@ var DoneSubscriber = (function (_super) { |
@@ -7,2 +7,3 @@ import test from "ava"; | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -13,3 +14,3 @@ export * from "../fake"; | ||
assert: t.truthy.bind(t), | ||
assertDeepEqual: t.deepEqual.bind(t) | ||
assertDeepEqual: t.deepEqual.bind(t), | ||
}); | ||
@@ -19,3 +20,3 @@ const configured = _configure((t) => (Object.assign(Object.assign(Object.assign({}, defaults()), factory(t)), configuration))); | ||
function cases(name, func, cases) { | ||
_cases(c => { | ||
_cases((c) => { | ||
const t = c.only ? test.only : c.skip ? test.skip : test; | ||
@@ -22,0 +23,0 @@ t(`${name} / ${c.name}`, marbles((m, t) => func(m, c, t))); |
@@ -7,5 +7,5 @@ const getPrototypeOf = Object.getPrototypeOf || | ||
if (getPrototypeOf(cases) !== Array.prototype) { | ||
cases = Object.keys(cases).map(key => (Object.assign(Object.assign({}, cases[key]), { name: key }))); | ||
cases = Object.keys(cases).map((key) => (Object.assign(Object.assign({}, cases[key]), { name: key }))); | ||
} | ||
cases.forEach(adapter); | ||
} |
@@ -6,3 +6,3 @@ import { circularDeepEqual } from "fast-equals"; | ||
frameworkMatcher: false, | ||
run: true | ||
run: true, | ||
}; | ||
@@ -9,0 +9,0 @@ export function defaults() { |
@@ -1,2 +0,2 @@ | ||
import { animationFrameScheduler, asapScheduler, asyncScheduler, queueScheduler, VirtualTimeScheduler } from "rxjs"; | ||
import { animationFrameScheduler, asapScheduler, asyncScheduler, queueScheduler, VirtualTimeScheduler, } from "rxjs"; | ||
import { TestScheduler } from "rxjs/testing"; | ||
@@ -30,6 +30,6 @@ import { argsSymbol } from "./args"; | ||
asyncScheduler, | ||
queueScheduler | ||
queueScheduler, | ||
]; | ||
} | ||
this.bindings_ = schedulers.map(instance => { | ||
this.bindings_ = schedulers.map((instance) => { | ||
const now = instance.hasOwnProperty("now") ? instance.now : undefined; | ||
@@ -36,0 +36,0 @@ instance.now = () => this.scheduler.now(); |
export * from "./configuration"; | ||
export * from "./context"; | ||
export * from "./expect"; | ||
export * from "./marbles"; |
@@ -5,3 +5,3 @@ import { fakeAsync, tick } from "@angular/core/testing"; | ||
return fakeAsync(_fakeSchedulers(() => { | ||
return fakeTest(milliseconds => { | ||
return fakeTest((milliseconds) => { | ||
console.log("The tick parameter passed to the fakeSchedulers test is deprecated; call the @angular/core/testing tick function instead. See the examples for the intended usage."); | ||
@@ -8,0 +8,0 @@ tick(milliseconds); |
@@ -6,2 +6,3 @@ import { _cases } from "../cases"; | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -15,5 +16,3 @@ export * from "../fake"; | ||
if (expectation.withContext) { | ||
expect(a) | ||
.withContext(m) | ||
.toBeTruthy(); | ||
expect(a).withContext(m).toBeTruthy(); | ||
} | ||
@@ -26,3 +25,3 @@ else { | ||
describe(name, () => { | ||
_cases(c => { | ||
_cases((c) => { | ||
const t = c.only ? fit : c.skip ? xit : it; | ||
@@ -29,0 +28,0 @@ if (func.length > 2) { |
import { fakeSchedulers as _fakeSchedulers } from "../fake"; | ||
export function fakeSchedulers(fakeTest) { | ||
let fakeTime = 0; | ||
return _fakeSchedulers(() => fakeTest(milliseconds => { | ||
return _fakeSchedulers(() => fakeTest((milliseconds) => { | ||
fakeTime += milliseconds; | ||
@@ -6,0 +6,0 @@ jest.advanceTimersByTime(milliseconds); |
@@ -5,2 +5,3 @@ import { _cases } from "../cases"; | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -13,3 +14,3 @@ export * from "./fake"; | ||
describe(name, () => { | ||
_cases(c => { | ||
_cases((c) => { | ||
const t = c.only ? test.only : c.skip ? test.skip : test; | ||
@@ -16,0 +17,0 @@ if (func.length > 2) { |
@@ -18,3 +18,3 @@ import { TestScheduler } from "rxjs/testing"; | ||
const scheduler = new TestScheduler((actual, expected) => observableMatcher(actual, expected, configuration.assert, configuration.assertDeepEqual, configuration.frameworkMatcher)); | ||
return scheduler.run(helpers => func.call(this, new RunContext(scheduler, helpers), ...rest)); | ||
return scheduler.run((helpers) => func.call(this, new RunContext(scheduler, helpers), ...rest)); | ||
} | ||
@@ -21,0 +21,0 @@ const context = new DeprecatedContext(configuration); |
@@ -6,2 +6,3 @@ import { _cases } from "../cases"; | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -13,3 +14,3 @@ export * from "./observe"; | ||
describe(name, () => { | ||
_cases(c => { | ||
_cases((c) => { | ||
const t = c.only ? it.only : c.skip ? it.skip : it; | ||
@@ -16,0 +17,0 @@ if (func.length > 2) { |
@@ -7,2 +7,3 @@ import * as tape from "tape"; | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -13,3 +14,3 @@ export * from "../fake"; | ||
assert: t.ok.bind(t), | ||
assertDeepEqual: t.deepEqual.bind(t) | ||
assertDeepEqual: t.deepEqual.bind(t), | ||
}); | ||
@@ -19,3 +20,3 @@ const configured = _configure((t) => (Object.assign(Object.assign(Object.assign({}, defaults()), factory(t)), configuration))); | ||
function cases(name, func, cases) { | ||
_cases(c => { | ||
_cases((c) => { | ||
const t = c.only ? tape.only : c.skip ? tape.skip : tape; | ||
@@ -22,0 +23,0 @@ t(`${name} / ${c.name}`, marbles((m, t) => func(m, c, t))); |
@@ -18,2 +18,3 @@ var __assign = (this && this.__assign) || function () { | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -24,3 +25,3 @@ export * from "../fake"; | ||
assert: t.truthy.bind(t), | ||
assertDeepEqual: t.deepEqual.bind(t) | ||
assertDeepEqual: t.deepEqual.bind(t), | ||
}); }; | ||
@@ -27,0 +28,0 @@ var configured = _configure(function (t) { return (__assign(__assign(__assign({}, defaults()), factory(t)), configuration)); }); |
@@ -17,3 +17,3 @@ var __assign = (this && this.__assign) || function () { | ||
frameworkMatcher: false, | ||
run: true | ||
run: true, | ||
}; | ||
@@ -20,0 +20,0 @@ export function defaults() { |
@@ -12,3 +12,3 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
import { animationFrameScheduler, asapScheduler, asyncScheduler, queueScheduler, VirtualTimeScheduler } from "rxjs"; | ||
import { animationFrameScheduler, asapScheduler, asyncScheduler, queueScheduler, VirtualTimeScheduler, } from "rxjs"; | ||
import { TestScheduler } from "rxjs/testing"; | ||
@@ -37,3 +37,3 @@ import { argsSymbol } from "./args"; | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -55,3 +55,3 @@ }); | ||
asyncScheduler, | ||
queueScheduler | ||
queueScheduler, | ||
]; | ||
@@ -58,0 +58,0 @@ } |
@@ -17,3 +17,3 @@ import { TestScheduler } from "rxjs/testing"; | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -20,0 +20,0 @@ }); |
export * from "./configuration"; | ||
export * from "./context"; | ||
export * from "./expect"; | ||
export * from "./marbles"; |
@@ -24,2 +24,3 @@ var __assign = (this && this.__assign) || function () { | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -33,5 +34,3 @@ export * from "../fake"; | ||
if (expectation.withContext) { | ||
expect(a) | ||
.withContext(m) | ||
.toBeTruthy(); | ||
expect(a).withContext(m).toBeTruthy(); | ||
} | ||
@@ -38,0 +37,0 @@ else { |
@@ -23,2 +23,3 @@ var __assign = (this && this.__assign) || function () { | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -25,0 +26,0 @@ export * from "./fake"; |
@@ -13,2 +13,3 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -15,0 +16,0 @@ export * from "./observe"; |
@@ -18,2 +18,3 @@ var __assign = (this && this.__assign) || function () { | ||
export * from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
@@ -24,3 +25,3 @@ export * from "../fake"; | ||
assert: t.ok.bind(t), | ||
assertDeepEqual: t.deepEqual.bind(t) | ||
assertDeepEqual: t.deepEqual.bind(t), | ||
}); }; | ||
@@ -27,0 +28,0 @@ var configured = _configure(function (t) { return (__assign(__assign(__assign({}, defaults()), factory(t)), configuration)); }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Expect = void 0; | ||
var args_1 = require("./args"); | ||
@@ -4,0 +5,0 @@ var assert_1 = require("./assert"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fakeSchedulers = void 0; | ||
var rxjs_1 = require("rxjs"); | ||
@@ -4,0 +5,0 @@ function fakeSchedulers(fakeTest, now) { |
20
index.js
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./configuration")); | ||
__export(require("./expect")); | ||
__export(require("./marbles")); | ||
__exportStar(require("./configuration"), exports); | ||
__exportStar(require("./context"), exports); | ||
__exportStar(require("./expect"), exports); | ||
__exportStar(require("./marbles"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fakeSchedulers = void 0; | ||
var testing_1 = require("@angular/core/testing"); | ||
@@ -4,0 +5,0 @@ var fake_1 = require("../fake"); |
@@ -13,2 +13,12 @@ "use strict"; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
@@ -21,6 +31,4 @@ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fakeSchedulers = exports.marbles = exports.cases = exports.configure = void 0; | ||
var cases_1 = require("../cases"); | ||
@@ -30,6 +38,7 @@ var configuration_1 = require("../configuration"); | ||
var marbles_1 = require("../marbles"); | ||
__export(require("../configuration")); | ||
__export(require("../expect")); | ||
__export(require("../fake")); | ||
__export(require("./observe")); | ||
__exportStar(require("../configuration"), exports); | ||
__exportStar(require("../context"), exports); | ||
__exportStar(require("../expect"), exports); | ||
__exportStar(require("../fake"), exports); | ||
__exportStar(require("./observe"), exports); | ||
function configure(configuration) { | ||
@@ -40,5 +49,3 @@ var defaultAssert = configuration_1.defaults().assert; | ||
if (expectation.withContext) { | ||
expect(a) | ||
.withContext(m) | ||
.toBeTruthy(); | ||
expect(a).withContext(m).toBeTruthy(); | ||
} | ||
@@ -45,0 +52,0 @@ else { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.observe = void 0; | ||
var done_subscriber_1 = require("../done-subscriber"); | ||
@@ -4,0 +5,0 @@ function observe(observableTest) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fakeSchedulers = void 0; | ||
var fake_1 = require("../fake"); | ||
@@ -4,0 +5,0 @@ function fakeSchedulers(fakeTest) { |
@@ -13,2 +13,12 @@ "use strict"; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
@@ -21,13 +31,12 @@ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.marbles = exports.cases = exports.configure = void 0; | ||
var cases_1 = require("../cases"); | ||
var configuration_1 = require("../configuration"); | ||
var marbles_1 = require("../marbles"); | ||
__export(require("../configuration")); | ||
__export(require("../expect")); | ||
__export(require("./fake")); | ||
__export(require("./observe")); | ||
__exportStar(require("../configuration"), exports); | ||
__exportStar(require("../context"), exports); | ||
__exportStar(require("../expect"), exports); | ||
__exportStar(require("./fake"), exports); | ||
__exportStar(require("./observe"), exports); | ||
function configure(configuration) { | ||
@@ -34,0 +43,0 @@ var marbles = marbles_1.configure(__assign(__assign(__assign({}, configuration_1.defaults()), { assertDeepEqual: function (a, e) { return expect(a).toStrictEqual(e); }, frameworkMatcher: true }), configuration)).marbles; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.observe = void 0; | ||
var done_subscriber_1 = require("../done-subscriber"); | ||
@@ -4,0 +5,0 @@ function observe(observableTest) { |
@@ -21,2 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.marbles = exports.configure = void 0; | ||
var testing_1 = require("rxjs/testing"); | ||
@@ -23,0 +24,0 @@ var configuration_1 = require("./configuration"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.observableMatcher = void 0; | ||
var fast_equals_1 = require("fast-equals"); | ||
@@ -4,0 +5,0 @@ function stringify(x) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
@@ -9,6 +19,4 @@ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fakeSchedulers = exports.marbles = exports.cases = exports.configure = void 0; | ||
var cases_1 = require("../cases"); | ||
@@ -18,5 +26,6 @@ var configuration_1 = require("../configuration"); | ||
var marbles_1 = require("../marbles"); | ||
__export(require("../configuration")); | ||
__export(require("../expect")); | ||
__export(require("./observe")); | ||
__exportStar(require("../configuration"), exports); | ||
__exportStar(require("../context"), exports); | ||
__exportStar(require("../expect"), exports); | ||
__exportStar(require("./observe"), exports); | ||
function configure(configuration) { | ||
@@ -23,0 +32,0 @@ var marbles = marbles_1.configure(configuration).marbles; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.observe = void 0; | ||
var done_subscriber_1 = require("../done-subscriber"); | ||
@@ -4,0 +5,0 @@ function observe(observableTest) { |
@@ -7,3 +7,4 @@ { | ||
"dependencies": { | ||
"fast-equals": "^2.0.0" | ||
"fast-equals": "^2.0.0", | ||
"rxjs-report-usage": "^1.0.4" | ||
}, | ||
@@ -34,6 +35,3 @@ "description": "An RxJS marble testing library for any test framework", | ||
"lint-staged": { | ||
"*.{js,jsx,ts,tsx}": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
"*.{js,jsx,ts,tsx}": "prettier --write" | ||
}, | ||
@@ -58,4 +56,4 @@ "main": "./index.js", | ||
"unpkg": "./bundles/rxjs-marbles.umd.js", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"ava": {} | ||
} |
@@ -13,6 +13,14 @@ "use strict"; | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fakeSchedulers = exports.marbles = exports.cases = exports.configure = void 0; | ||
var tape = require("tape"); | ||
@@ -23,9 +31,10 @@ var cases_1 = require("../cases"); | ||
var marbles_1 = require("../marbles"); | ||
__export(require("../configuration")); | ||
__export(require("../expect")); | ||
__export(require("../fake")); | ||
__exportStar(require("../configuration"), exports); | ||
__exportStar(require("../context"), exports); | ||
__exportStar(require("../expect"), exports); | ||
__exportStar(require("../fake"), exports); | ||
function configure(configuration) { | ||
var factory = function (t) { return ({ | ||
assert: t.ok.bind(t), | ||
assertDeepEqual: t.deepEqual.bind(t) | ||
assertDeepEqual: t.deepEqual.bind(t), | ||
}); }; | ||
@@ -32,0 +41,0 @@ var configured = marbles_1.configure(function (t) { return (__assign(__assign(__assign({}, configuration_1.defaults()), factory(t)), configuration)); }); |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
457493
5023
3
97
+ Addedrxjs-report-usage@^1.0.4
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/generator@7.26.9(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/parser@7.26.9(transitive)
+ Added@babel/template@7.26.9(transitive)
+ Added@babel/traverse@7.26.9(transitive)
+ Added@babel/types@7.26.9(transitive)
+ Added@jridgewell/gen-mapping@0.3.8(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbent@7.3.12(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbytesish@0.4.4(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.1.0(transitive)
+ Addedkleur@3.0.3(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedms@2.1.3(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedprompts@2.4.2(transitive)
+ Addedrxjs-report-usage@1.0.6(transitive)
+ Addedsisteransi@1.0.5(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedwrappy@1.0.2(transitive)