diff --git a/src/utilities/manifestStabilityUtils.test.ts b/src/utilities/manifestStabilityUtils.test.ts index 711bc428f..2b2df4c14 100644 --- a/src/utilities/manifestStabilityUtils.test.ts +++ b/src/utilities/manifestStabilityUtils.test.ts @@ -1,13 +1,8 @@ -import * as fileUtils from './fileUtils' import * as manifestStabilityUtils from './manifestStabilityUtils' -import * as path from 'path' -import * as fs from 'fs' -import {before} from 'node:test' import {Kubectl} from '../types/kubectl' describe('manifestStabilityUtils', () => { - - const resourceType = 'microsoft.containerservice/fleets' + const kc = new Kubectl('') const resources = [ { type: 'deployment', @@ -15,17 +10,14 @@ describe('manifestStabilityUtils', () => { namespace: 'default' } ] - const kc = new Kubectl('') + const resourceType = 'microsoft.containerservice/fleets' it('should return immediately if the resource type is microsoft.containerservice/fleets', async () => { const spy = jest.spyOn(manifestStabilityUtils, 'checkManifestStability') const checkRolloutStatusSpy = jest.spyOn(kc, 'checkRolloutStatus') - await manifestStabilityUtils.checkManifestStability(kc, resources, resourceType) expect(checkRolloutStatusSpy).not.toHaveBeenCalled() expect(spy).toHaveReturned() }) - - }) \ No newline at end of file