rxjs-marbles
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -238,3 +238,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"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({}, configuration), { assertDeepEqual: function (a, e) { return expect(a).toEqual(e); }, frameworkMatcher: true })).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(configuration_1.defaults()), 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 __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({}, configuration), { assertDeepEqual: function (a, e) { return expect(a).toStrictEqual(e); }, frameworkMatcher: true })).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(configuration_1.defaults()), 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?"); | ||
@@ -241,0 +241,0 @@ /***/ }), |
@@ -0,1 +1,8 @@ | ||
<a name="5.0.5"></a> | ||
## [5.0.5](https://github.com/cartant/rxjs-marbles/compare/v5.0.4...v5.0.5) (2020-03-20) | ||
### Changes | ||
* Fix links to RxJS documentation in `README.md`. ([469b780](https://github.com/cartant/rxjs-marbles/commit/469b780)) | ||
<a name="5.0.4"></a> | ||
@@ -2,0 +9,0 @@ ## [5.0.4](https://github.com/cartant/rxjs-marbles/compare/v5.0.3...v5.0.4) (2019-12-14) |
@@ -9,3 +9,3 @@ import { _cases } from "../cases"; | ||
export function configure(configuration) { | ||
const { marbles } = _configure(Object.assign(Object.assign({}, configuration), { assertDeepEqual: (a, e) => expect(a).toEqual(e), frameworkMatcher: true })); | ||
const { marbles } = _configure(Object.assign(Object.assign({}, configuration), { assertDeepEqual: (a, e) => expect(a).toStrictEqual(e), frameworkMatcher: true })); | ||
function cases(name, func, cases) { | ||
@@ -12,0 +12,0 @@ describe(name, () => { |
@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () { | ||
export function configure(configuration) { | ||
var marbles = _configure(__assign(__assign({}, configuration), { assertDeepEqual: function (a, e) { return expect(a).toEqual(e); }, frameworkMatcher: true })).marbles; | ||
var marbles = _configure(__assign(__assign({}, configuration), { assertDeepEqual: function (a, e) { return expect(a).toStrictEqual(e); }, frameworkMatcher: true })).marbles; | ||
function cases(name, func, cases) { | ||
@@ -30,0 +30,0 @@ describe(name, function () { |
@@ -32,3 +32,3 @@ "use strict"; | ||
function configure(configuration) { | ||
var marbles = marbles_1.configure(__assign(__assign({}, configuration), { assertDeepEqual: function (a, e) { return expect(a).toEqual(e); }, frameworkMatcher: true })).marbles; | ||
var marbles = marbles_1.configure(__assign(__assign({}, configuration), { assertDeepEqual: function (a, e) { return expect(a).toStrictEqual(e); }, frameworkMatcher: true })).marbles; | ||
function cases(name, func, cases) { | ||
@@ -35,0 +35,0 @@ describe(name, function () { |
@@ -56,4 +56,4 @@ { | ||
"unpkg": "./bundles/rxjs-marbles.umd.js", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"ava": {} | ||
} |
@@ -14,3 +14,3 @@ # rxjs-marbles | ||
`rxjs-marbles` is an RxJS [marble testing](https://github.com/ReactiveX/rxjs/blob/master/doc/marble-testing.md) library that should be compatible with any test framework. It wraps the RxJS [`TestScheduler`](https://github.com/ReactiveX/rxjs/blob/5.4.2/src/testing/TestScheduler.ts) and provides methods similar to the [helper methods](https://github.com/ReactiveX/rxjs/blob/master/doc/marble-testing.md#api) used the `TestScheduler` API. | ||
`rxjs-marbles` is an RxJS [marble testing](https://github.com/ReactiveX/rxjs/blob/6.5.4/docs_app/content/guide/testing/marble-testing.md) library that should be compatible with any test framework. It wraps the RxJS [`TestScheduler`](https://github.com/ReactiveX/rxjs/blob/6.5.4/src/internal/testing/TestScheduler.ts) and provides methods similar to the [helper methods](https://github.com/ReactiveX/rxjs/blob/6.5.4/docs_app/content/guide/testing/marble-testing.md#api) used the `TestScheduler` API. | ||
@@ -39,2 +39,4 @@ It can be used with [AVA](https://github.com/avajs/ava), [Jasmine](https://github.com/jasmine/jasmine), [Jest](https://facebook.github.io/jest/), [Mocha](https://github.com/mochajs/mocha) or [Tape](https://github.com/substack/tape) in the browser or in Node and it supports CommonJS and ES module bundlers. | ||
In particular, you should read the RxJS documentation on [marble syntax](https://github.com/ReactiveX/rxjs/blob/6.5.4/docs_app/content/guide/testing/marble-testing.md#marble-syntax) and [synchronous assertion](https://github.com/ReactiveX/rxjs/blob/6.5.4/docs_app/content/guide/testing/marble-testing.md#synchronous-assertion). | ||
## Usage | ||
@@ -208,3 +210,3 @@ | ||
`marbles` is passed the test function, which it wraps, passing the wrapper to the test framework. When the test function is called, it is passed the `Context` - which contains methods that correspond to the `TestScheduler` [helper methods](https://github.com/ReactiveX/rxjs/blob/master/doc/marble-testing.md#api): | ||
`marbles` is passed the test function, which it wraps, passing the wrapper to the test framework. When the test function is called, it is passed the `Context` - which contains methods that correspond to the `TestScheduler` [helper methods](https://github.com/ReactiveX/rxjs/blob/6.5.4/docs_app/content/guide/testing/marble-testing.md#api): | ||
@@ -211,0 +213,0 @@ ```ts |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
443716
257