import { TestContext } from 'ava' ; import { IMessage } from 'botbuilder' ; import { ChaiExpectation } from './ChaiExpectation' ; import { IExpectation } from './IExpectation' ; export class AvaExpectation implements IExpectation { private subject : { } ; private message : string ; private readonly chaiImplementation : ChaiExpectation ; private readonly avaContext : TestContext ; constructor ( avaContext , subject , message ? ) { this . subject = subject ; this . message = message ; this . chaiImplementation = new ChaiExpectation ( subject , message ) ; this . avaContext = avaContext ; } public notToBeEmpty ( ) { this . chaiImplementation . notToBeEmpty ( ) ; this . avaContext . pass ( ) ; } public toEqual ( value ) { this . avaContext . is ( this . subject , value ) ; } public toInclude ( value ) { this . chaiImplementation . toInclude ( value ) ; this . avaContext . pass ( ) ; } public toBeTrue ( ) { this . chaiImplementation . toBeTrue ( ) ; this . avaContext . pass ( ) ; } public toDeeplyInclude ( value ) { this . chaiImplementation . toDeeplyInclude ( value ) ; this . avaContext . pass ( ) ; } }