refactor: move devices:capability-status command to yargs #563
Annotations
9 errors and 4 warnings
handler › throws exception for component with no capabilities:
src/__tests__/commands/devices/capability-status.test.ts#L182
expect(received).toHaveBeenCalledExactlyOnceWith(expected)
Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}
at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:182:31)
|
handler › calls formatAndWriteItem properly:
src/__tests__/commands/devices/capability-status.test.ts#L205
expect(received).toHaveBeenCalledExactlyOnceWith(expected)
Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}
at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:205:31)
|
build (22, macos-latest)
Process completed with exit code 1.
|
handler › throws exception for component with no capabilities:
src/__tests__/commands/devices/capability-status.test.ts#L182
expect(received).toHaveBeenCalledExactlyOnceWith(expected)
Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}
at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:182:31)
|
handler › calls formatAndWriteItem properly:
src/__tests__/commands/devices/capability-status.test.ts#L205
expect(received).toHaveBeenCalledExactlyOnceWith(expected)
Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}
at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:205:31)
|
build (22, ubuntu-latest)
Process completed with exit code 1.
|
handler › throws exception for component with no capabilities:
src/__tests__/commands/devices/capability-status.test.ts#L182
expect(received).toHaveBeenCalledExactlyOnceWith(expected)
Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}
at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:182:31)
|
handler › calls formatAndWriteItem properly:
src/__tests__/commands/devices/capability-status.test.ts#L205
expect(received).toHaveBeenCalledExactlyOnceWith(expected)
Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}
at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:205:31)
|
build (22, windows-latest)
Process completed with exit code 1.
|
lint-commits
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build (22, macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build (22, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build (22, windows-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|