New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-unit-test-helper

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-unit-test-helper - npm Package Compare versions

Comparing version 9.1.4 to 9.1.5

7

dist/autoSpyObj.d.ts

@@ -0,1 +1,2 @@

/// <reference types="jasmine" />
export declare enum ObservablePropertyStrategy {

@@ -6,6 +7,2 @@ Object = 0,

}
export declare function autoSpyObj(classUnderTest: NewableFunction, spyProperties?: never[], observableStrategy?: ObservablePropertyStrategy): {
classUnderTest: NewableFunction;
spyProperties?: string[];
observableStrategy?: ObservablePropertyStrategy;
};
export declare function autoSpyObj<TClassUnderTest>(classUnderTest: NewableFunction, spyProperties?: never[], observableStrategy?: ObservablePropertyStrategy): jasmine.SpyObj<TClassUnderTest>;
{
"name": "angular-unit-test-helper",
"version": "9.1.4",
"version": "9.1.5",
"description": "Helper functions to help write unit tests in Angular using mocks and spies",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -12,13 +12,9 @@ import { BehaviorSubject, Observable } from 'rxjs'

export function autoSpyObj(
export function autoSpyObj<TClassUnderTest>(
classUnderTest: NewableFunction,
spyProperties = [],
observableStrategy = ObservablePropertyStrategy.Observable
): {
classUnderTest: NewableFunction
spyProperties?: string[]
observableStrategy?: ObservablePropertyStrategy
} {
): jasmine.SpyObj<TClassUnderTest> {
const props = Reflect.ownKeys(classUnderTest.prototype)
const spyObj = jasmine.createSpyObj(
const spyObj: jasmine.SpyObj<TClassUnderTest> = jasmine.createSpyObj(
classUnderTest.name,

@@ -25,0 +21,0 @@ getAllFunctions(classUnderTest.prototype, props)

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