@revoloo/cypress6
Version:
Cypress.io end to end testing tool
27 lines (20 loc) • 614 B
text/typescript
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 {
callCount: number = 0
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
}
}