UNPKG

rxjs-marbles-with-amd

Version:

Forked version of (https://github.com/cartant/rxjs-marbles) An RxJS marble testing library for any test framework

11 lines (10 loc) 346 B
const getPrototypeOf = Object.getPrototypeOf || function (obj) { return obj.__proto__; }; export function _cases(adapter, cases) { if (getPrototypeOf(cases) !== Array.prototype) { cases = Object.keys(cases).map(key => (Object.assign(Object.assign({}, cases[key]), { name: key }))); } cases.forEach(adapter); }