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

jasmine-marbles

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-marbles - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

4

bundles/jasmine-marbles.umd.js

@@ -460,6 +460,6 @@ (function (global, factory) {

const expected = rxjs_testing.TestScheduler.parseMarbles(fixture.marbles, fixture.values, fixture.error, true, true);
if (utils.equals(results, expected)) {
if (lodash.isEqual(results, expected)) {
return { pass: true };
}
const mapNotificationToSymbol = buildNotificationToSymbolMapper(fixture.marbles, expected, utils.equals);
const mapNotificationToSymbol = buildNotificationToSymbolMapper(fixture.marbles, expected, lodash.isEqual);
const receivedMarble = unparseMarble(results, mapNotificationToSymbol);

@@ -466,0 +466,0 @@ const message = formatMessage(fixture.marbles, expected, receivedMarble, results);

import { Notification, Observable } from 'rxjs';
import { TestScheduler } from 'rxjs/testing';
import { isEqual } from 'lodash';
import { getTestScheduler, initTestScheduler, resetTestScheduler, } from './src/scheduler';

@@ -83,6 +84,6 @@ import { TestColdObservable, TestHotObservable, } from './src/test-observables';

const expected = TestScheduler.parseMarbles(fixture.marbles, fixture.values, fixture.error, true, true);
if (utils.equals(results, expected)) {
if (isEqual(results, expected)) {
return { pass: true };
}
const mapNotificationToSymbol = buildNotificationToSymbolMapper(fixture.marbles, expected, utils.equals);
const mapNotificationToSymbol = buildNotificationToSymbolMapper(fixture.marbles, expected, isEqual);
const receivedMarble = unparseMarble(results, mapNotificationToSymbol);

@@ -89,0 +90,0 @@ const message = formatMessage(fixture.marbles, expected, receivedMarble, results);

@@ -6,2 +6,3 @@ "use strict";

var testing_1 = require("rxjs/testing");
var lodash_1 = require("lodash");
var scheduler_1 = require("./src/scheduler");

@@ -95,6 +96,6 @@ var test_observables_1 = require("./src/test-observables");

var expected = testing_1.TestScheduler.parseMarbles(fixture.marbles, fixture.values, fixture.error, true, true);
if (utils.equals(results, expected)) {
if (lodash_1.isEqual(results, expected)) {
return { pass: true };
}
var mapNotificationToSymbol = buildNotificationToSymbolMapper(fixture.marbles, expected, utils.equals);
var mapNotificationToSymbol = buildNotificationToSymbolMapper(fixture.marbles, expected, lodash_1.isEqual);
var receivedMarble = marble_unparser_1.unparseMarble(results, mapNotificationToSymbol);

@@ -101,0 +102,0 @@ var message = formatMessage(fixture.marbles, expected, receivedMarble, results);

@@ -10,3 +10,3 @@ {

],
"version": "0.8.0",
"version": "0.8.1",
"module": "index.js",

@@ -13,0 +13,0 @@ "es2015": "es6/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc