mirror of
https://github.com/Azure/k8s-set-context.git
synced 2026-06-25 00:09:28 +08:00
b6c5bf067a
* updated action file with node16 * Code consistency using prettier and its workflow * Enforce Prettier * code fix * code fix * code fix Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com>
15 lines
409 B
TypeScript
15 lines
409 B
TypeScript
import * as actions from '@actions/exec'
|
|
import {runAzCliCommand} from './azCommands'
|
|
|
|
describe('Az commands', () => {
|
|
test('it runs an az cli command', async () => {
|
|
const path = 'path'
|
|
const args = ['args']
|
|
|
|
jest.spyOn(actions, 'exec').mockImplementation(async () => 0)
|
|
|
|
expect(await runAzCliCommand(path, args))
|
|
expect(actions.exec).toBeCalledWith(path, args, {})
|
|
})
|
|
})
|