| 1 | import { Test } from './test'; |
| 2 | |
| 3 | export class Group { |
| 4 | constructor(public readonly name: string, |
| 5 | public readonly line: number, |
| 6 | public readonly children: ReadonlyArray<Group>, |
| 7 | public readonly tests: ReadonlyArray<Test>) { |
| 8 | } |
| 9 | |
| 10 | public toJSON(): any { |
| 11 | return { |
| 12 | children: this.children, |
| 13 | line: this.line, |
| 14 | name: this.name, |
| 15 | tests: this.tests, |
| 16 | }; |
| 17 | } |
| 18 | } |