@revoloo/cypress6
Version:
Cypress.io end to end testing tool
26 lines (20 loc) • 534 B
JavaScript
import { action, computed, observable } from 'mobx'
export default class Folder {
path
displayName
specType
isExpanded = true
children = []
isFolder = true
constructor ({ path, displayName, specType }) {
this.path = path
this.displayName = displayName
this.specType = specType || 'integration'
}
get hasChildren () {
return this.children.length
}
setExpanded (isExpanded) {
this.isExpanded = isExpanded
}
}