UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

26 lines (20 loc) 534 B
import { action, computed, observable } from 'mobx' export default class Folder { @observable path @observable displayName @observable specType @observable isExpanded = true @observable children = [] isFolder = true constructor ({ path, displayName, specType }) { this.path = path this.displayName = displayName this.specType = specType || 'integration' } @computed get hasChildren () { return this.children.length } @action setExpanded (isExpanded) { this.isExpanded = isExpanded } }