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

ng-mocks

Package Overview
Dependencies
Maintainers
2
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-mocks - npm Package Compare versions

Comparing version 13.5.0 to 13.5.1

10

examples/readme/classic.spec.ts

@@ -102,10 +102,2 @@ import {

describe('profile:classic', () => {
// First of all, we would like to reuse the same
// TestBed in every test.
// ngMocks.faster suppresses reset of TestBed
// after each test and allows to use TestBed,
// MockBuilder and MockRender in beforeAll.
// https://ng-mocks.sudo.eu/api/ngMocks/faster
ngMocks.faster();
// Helps to reset customizations after each test.

@@ -116,3 +108,3 @@ MockInstance.scope();

// The code mocks everything in SharedModule and provides a mock AuthService.
beforeAll(async () => {
beforeEach(async () => {
return TestBed.configureTestingModule({

@@ -119,0 +111,0 @@ imports: [

6

examples/TestPipe/test.spec.ts

@@ -31,4 +31,4 @@ import { Pipe, PipeTransform } from '@angular/core';

it('sorts strings', () => {
const fixture = MockRender('{{ values | target}}', {
values: ['1', '3', '2'],
const fixture = MockRender(TargetPipe, {
$implicit: ['1', '3', '2'],
});

@@ -40,3 +40,3 @@

it('reverses strings on param', () => {
const fixture = MockRender('{{ values | target:flag}}', {
const fixture = MockRender('{{ values | target:flag }}', {
flag: false,

@@ -43,0 +43,0 @@ values: ['1', '3', '2'],

{
"name": "ng-mocks",
"version": "13.5.0",
"version": "13.5.1",
"description": "An Angular testing library for creating mock services, components, directives, pipes and modules in unit tests, which includes shallow rendering, precise stubs to dump child dependencies, supports Angular 5 6 7 8 9 10 11 12 13, jasmine and jest.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -74,10 +74,2 @@ [![chat on gitter](https://img.shields.io/gitter/room/ike18t/ng-mocks)](https://gitter.im/ng-mocks/community)

describe('profile:classic', () => {
// First of all, we would like to reuse the same
// TestBed in every test.
// ngMocks.faster suppresses reset of TestBed
// after each test and allows to use TestBed,
// MockBuilder and MockRender in beforeAll.
// https://ng-mocks.sudo.eu/api/ngMocks/faster
ngMocks.faster();
// Helps to reset customizations after each test.

@@ -84,0 +76,0 @@ MockInstance.scope();

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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