UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

27 lines (20 loc) 614 B
import { observable } from 'mobx' import Instrument, { InstrumentProps } from '../instruments/instrument-model' export interface AgentProps extends InstrumentProps { callCount: number functionName: string } export default class Agent extends Instrument { @observable callCount: number = 0 @observable functionName: string constructor (props: AgentProps) { super(props) this.callCount = props.callCount this.functionName = props.functionName } update (props: AgentProps) { super.update(props) this.callCount = props.callCount this.functionName = props.functionName } }