Skip to content

Commit

Permalink
Removing extraneous test
Browse files Browse the repository at this point in the history
  • Loading branch information
willvedd committed Nov 17, 2023
1 parent e2869e0 commit 9e37d18
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions test/keywordPreservation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 9e37d18

Please sign in to comment.