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

boar-angular2-testing

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boar-angular2-testing - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

3

dist/lib/sync-mock-backend/index.d.ts

@@ -5,2 +5,3 @@ import { MockBackend, MockConnection } from 'angular2/http/testing';

export { SyncMockBackendOptions } from './options';
export { Expectation } from './expectation';
export declare class SyncMockBackend extends MockBackend {

@@ -12,2 +13,4 @@ private _expectations;

static createWithAutoRespond(): SyncMockBackend;
static createForExpectations(expectations: Expectation[], options?: SyncMockBackendOptions): SyncMockBackend;
static createForExpectation(expectation: Expectation, options?: SyncMockBackendOptions): SyncMockBackend;
autoRespond: boolean;

@@ -14,0 +17,0 @@ every(): Expectation;

@@ -22,2 +22,4 @@ "use strict";

exports.SyncMockBackendOptions = options_2.SyncMockBackendOptions;
var expectation_2 = require('./expectation');
exports.Expectation = expectation_2.Expectation;
var core_1 = require('angular2/core');

@@ -42,2 +44,12 @@ var SyncMockBackend = (function (_super) {

};
SyncMockBackend.createForExpectations = function (expectations, options) {
var backend = new SyncMockBackend(new options_1.SyncMockBackendOptions(options));
expectations.forEach(function (expectation) { return backend.prependWhen(expectation); });
return backend;
};
SyncMockBackend.createForExpectation = function (expectation, options) {
var backend = new SyncMockBackend(new options_1.SyncMockBackendOptions(options));
backend.prependWhen(expectation);
return backend;
};
Object.defineProperty(SyncMockBackend.prototype, "autoRespond", {

@@ -44,0 +56,0 @@ get: function () {

2

package.json

@@ -41,3 +41,3 @@ {

},
"version": "1.3.0"
"version": "1.4.0"
}

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