Kui API Documentation - v11.0.0 / @kui-shell/test / TestTable
@kui-shell/test.TestTable
• new TestTable(testName?, tests?)
| Name | Type |
|---|---|
testName? |
string |
tests? |
Tests |
packages/test/src/api/table.ts:56
• Private cmdIdx: number
packages/test/src/api/table.ts:54
• Private ctx: ISuite
packages/test/src/api/table.ts:52
• Private outputCount: number
packages/test/src/api/table.ts:51
• Private testName: string
packages/test/src/api/table.ts:50
• Private tests: Tests
packages/test/src/api/table.ts:53
▸ drilldownFromTable(expectTable, _ctx?): void
drilldownFromTable() drilldowns from the table
| Name | Type | Description |
|---|---|---|
expectTable |
Table<Row> |
is the expected table shown in the REPL |
_ctx? |
ISuite |
- |
void
packages/test/src/api/table.ts:219
▸ evalStatus(_): void
| Name | Type |
|---|---|
_ |
Object |
_.command |
string |
_.ctx? |
ISuite |
_.expectRow |
RowWithBadgeAndMessage[] |
_.statusDescription? |
string |
void
packages/test/src/api/table.ts:87
▸ Private executeAndValidate(command, expectTable, validation?, _ctx?): void
Execute the table-generating command, and validate the content.
| Name | Type |
|---|---|
command |
string |
expectTable |
Table<Row> |
validation? |
TableValidation |
_ctx? |
ISuite |
void
packages/test/src/api/table.ts:124
▸ run(): void
new TestTable().run() will start a mocha test suite
void