rxjs-marbles
Advanced tools
Comparing version 4.3.5 to 5.0.0
@@ -1,2 +0,2 @@ | ||
import { TestContext } from "ava"; | ||
import { ExecutionContext } from "ava"; | ||
import { NamedCase, UnnamedCase } from "../cases"; | ||
@@ -10,8 +10,8 @@ import { Configuration } from "../configuration"; | ||
export interface CasesFunction { | ||
<T extends UnnamedCase>(name: string, func: (context: Context, _case: T, t: TestContext) => void, cases: { | ||
<T extends UnnamedCase>(name: string, func: (context: Context, _case: T, t: ExecutionContext) => void, cases: { | ||
[key: string]: T; | ||
}): void; | ||
<T extends NamedCase>(name: string, func: (context: Context, _case: T, t: TestContext) => void, cases: T[]): void; | ||
<T extends NamedCase>(name: string, func: (context: Context, _case: T, t: ExecutionContext) => void, cases: T[]): void; | ||
} | ||
export declare type MarblesFunction = (func: (m: Context, t: TestContext) => any) => any; | ||
export declare type MarblesFunction = (func: (m: Context, t: ExecutionContext) => any) => any; | ||
export declare function configure(configuration: Configuration): { | ||
@@ -23,2 +23,2 @@ cases: CasesFunction; | ||
export { cases, marbles }; | ||
export declare function fakeSchedulers(fakeTest: (t: TestContext) => any): (t: TestContext) => any; | ||
export declare function fakeSchedulers(fakeTest: (t: ExecutionContext) => any): (t: ExecutionContext) => any; |
@@ -34,3 +34,3 @@ "use strict"; | ||
cases_1._cases(function (c) { | ||
var t = c.only ? ava_1.test.only : c.skip ? ava_1.test.skip : ava_1.test; | ||
var t = c.only ? ava_1.default.only : c.skip ? ava_1.default.skip : ava_1.default; | ||
t(name + " / " + c.name, marbles(function (m, t) { return func(m, c, t); })); | ||
@@ -37,0 +37,0 @@ }, cases); |
@@ -179,3 +179,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\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({}, configuration, factory(t))); });\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.test.only : c.skip ? ava_1.test.skip : ava_1.test;\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(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/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\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({}, configuration, factory(t))); });\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(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/ava/index.ts?"); | ||
@@ -182,0 +182,0 @@ /***/ }), |
@@ -0,1 +1,8 @@ | ||
<a name="5.0.0"></a> | ||
## [5.0.0](https://github.com/cartant/rxjs-marbles/compare/v4.3.5...v5.0.0) (2018-12-16) | ||
### Breaking changes | ||
* Upgrade to AVA 1.0. In that version, breaking changes were made to AVA's exports. The major version bump for `rxjs-marbles` reflects this; there are no changes to `rxjs-marbles` functionality in this release. ([2dab29b](https://github.com/cartant/rxjs-marbles/commit/2dab29b)) | ||
<a name="4.3.5"></a> | ||
@@ -2,0 +9,0 @@ ## [4.3.5](https://github.com/cartant/rxjs-marbles/compare/v4.3.4...v4.3.5) (2018-11-12) |
@@ -1,2 +0,2 @@ | ||
import { test } from "ava"; | ||
import test from "ava"; | ||
import { _cases } from "../cases"; | ||
@@ -3,0 +3,0 @@ import { defaults } from "../configuration"; |
@@ -12,3 +12,3 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
import { test } from "ava"; | ||
import test from "ava"; | ||
import { _cases } from "../cases"; | ||
@@ -15,0 +15,0 @@ import { defaults } from "../configuration"; |
@@ -45,4 +45,4 @@ { | ||
"unpkg": "./bundles/rxjs-marbles.umd.js", | ||
"version": "4.3.5", | ||
"version": "5.0.0", | ||
"ava": {} | ||
} |
@@ -73,3 +73,3 @@ # rxjs-marbles | ||
With AVA and Tape, the callback passed to the `marbles` function will receive an addional argument - the AVA `TestContext` or the Tape `Test` - which can be used to specify the number of assertions in the test plan. See the framework-specific examples for details. | ||
With AVA and Tape, the callback passed to the `marbles` function will receive an addional argument - the AVA `ExecutionContext` or the Tape `Test` - which can be used to specify the number of assertions in the test plan. See the framework-specific examples for details. | ||
@@ -76,0 +76,0 @@ ### Using cases for test variations |
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
445668