diff --git a/test/keywordPreservation.test.ts b/test/keywordPreservation.test.ts index 3a20a128a..f79befb1f 100644 --- a/test/keywordPreservation.test.ts +++ b/test/keywordPreservation.test.ts @@ -786,75 +786,6 @@ describe('preserveKeywords', () => { expect(preservedAssets).to.deep.equal(expected); }); - it('should preserve keywords in resources ', () => { - const mockLocalAssets = { - clientGrants: [ - { - client_id: 'API Explorer Application', - audience: 'https://##ENV##.travel0.com/api/v1', - scope: ['update:account'], - name: 'API Explorer Application', - }, - { - client_id: 'M2M Application', - audience: '##API_IDENTIFIER##', - scope: ['create:users', 'read:users'], - name: 'My M2M', - }, - { - client_id: 'M2M Application', - audience: 'https://##ENV##.travel0.com/api/v1', - scope: ['update:account'], - name: 'My M2M', - }, - ], - }; - - const preservedAssets = preserveKeywords({ - localAssets: mockLocalAssets, - remoteAssets: { - clientGrants: [ - { - client_id: 'API Explorer Application', - audience: 'https://dev.travel0.com/api/v1', - scope: ['update:account'], - name: 'API Explorer Application', - }, - { - client_id: 'M2M Application', - audience: 'https://api.travel0.com/v1', - scope: ['create:users', 'read:users'], - name: 'My M2M', - }, - { - client_id: 'M2M Application', - audience: 'https://dev.travel0.com/api/v1', - scope: ['update:account'], - name: 'My M2M', - }, - ], - }, - keywordMappings: { - ENV: 'dev', - API_IDENTIFIER: 'https://api.travel0.com/v1', - }, - auth0Handlers: [ - { - type: 'clientGrants', - id: 'id', - identifiers: ['id', ['client_id', 'audience']], - }, - ], - }); - - const expected = (() => { - let expected = mockLocalAssets; - return expected; - })(); - - expect(preservedAssets).to.deep.equal(expected); - }); - it('should not preserve keywords in identifier fields if keyword value is different than on remote', () => { const mockLocalAssets = { connections: [