File

src/app/tests/mocks/modal.ts

Description

Mock for BsModalService.

Provide mocked service to testbed: const modalService = new MockModalService(); TestBed.configureTestingModule({ providers: [ { provide: BsModalService, useValue: modalService } ] }).compileComponents();

Example

Index

Properties
Methods

Methods

show
show(instance: )
Parameters :
Name Type Optional Description
instance
Returns : void

Properties

content
content:
export class MockModalService {

  content;

  show(instance) {}

}

results matching ""

    No results matching ""