Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243export class Gardener { _state = 'wake up'
states: string[] = [this._state]
get state() { return this._state }
set state(state: string) { this._state = state this.states.push(state) }
putWorkingClothes() { this.state = 'working clothes' }
weedTheGrass() { this.state = 'weed the grass' }
mowerTheLawn() { this.state = 'mower the lawn' }
waterFlowers() { this.state = 'water flowers' }
rest() { this.state = 'rest' }
standup() { this.state = 'standup' }
goHome() { this.state = 'home' }}