Skip to content

Commit

Permalink
Use different versions for packages2 package
Browse files Browse the repository at this point in the history
  • Loading branch information
jafeltra committed Jul 14, 2023
1 parent 25e0135 commit b53ef0a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/load.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,38 +90,38 @@ const EXT_PKG_RESPONSE = {
description: 'None',
url: 'https://packages2.fhir.org/packages/hl7.fhir.uv.extensions/4.5.6-test'
},
'1.1.0': {
'2.0.0': {
name: 'hl7.fhir.uv.extensions',
date: '2023-03-26T08:46:31-00:00',
version: '1.1.0',
version: '2.0.0',
fhirVersion: '??',
kind: '??',
count: '18',
canonical: 'http://hl7.org/fhir/extensions',
description: 'None',
url: 'https://packages2.fhir.org/packages/hl7.fhir.uv.extensions/1.1.0'
url: 'https://packages2.fhir.org/packages/hl7.fhir.uv.extensions/2.0.0'
},
'1.1.2': {
'2.0.2': {
name: 'hl7.fhir.uv.extensions',
date: '2023-03-26T08:46:31-00:00',
version: '1.1.2',
version: '2.0.2',
fhirVersion: '??',
kind: '??',
count: '18',
canonical: 'http://hl7.org/fhir/extensions',
description: 'None',
url: 'https://packages2.fhir.org/packages/hl7.fhir.uv.extensions/1.1.2'
url: 'https://packages2.fhir.org/packages/hl7.fhir.uv.extensions/2.0.2'
},
'1.1.1': {
'2.0.1': {
name: 'hl7.fhir.uv.extensions',
date: '2023-03-26T08:46:31-00:00',
version: '1.1.1',
version: '2.0.1',
fhirVersion: '??',
kind: '??',
count: '18',
canonical: 'http://hl7.org/fhir/extensions',
description: 'None',
url: 'https://packages2.fhir.org/packages/hl7.fhir.uv.extensions/1.1.1'
url: 'https://packages2.fhir.org/packages/hl7.fhir.uv.extensions/2.0.1'
}
}
};
Expand Down Expand Up @@ -1249,8 +1249,8 @@ describe('#lookUpLatestPatchVersion', () => {
});

it('should get the latest patch version for a package on the packages2 server', async () => {
const latestPatch = await lookUpLatestPatchVersion('hl7.fhir.uv.extensions', '1.1.x');
expect(latestPatch).toBe('1.1.2');
const latestPatch = await lookUpLatestPatchVersion('hl7.fhir.uv.extensions', '2.0.x');
expect(latestPatch).toBe('2.0.2');
});

it('should get the latest patch version for a package on a custom server', async () => {
Expand Down

0 comments on commit b53ef0a

Please sign in to comment.