UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

1 lines 577 B
import{Expect}from"../expect.class";import{TestingExpect}from"../testing-expect.class";import{TestingExpectToHaveBeen}from"./testing-expect-to-have-been.class";export class TestingExpectToHave extends Expect{get been(){return this.toHaveBeen}toHaveBeen;constructor(e=new TestingExpect){super(e),this.toHaveBeen=new TestingExpectToHaveBeen(e)}class(e,t,s){return this.expect(e,s).toHaveClass(t),this.setNot(!1),this}size(e,t,s){return this.expect(e,s).toHaveSize(t),this.setNot(!1),this}spyInteractions(e,t){return this.expect(e,t).toHaveSpyInteractions(),this.setNot(!1),this}}