Skip to content

Commit

Permalink
Merge 8009c67 into 811791c
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaniak committed Nov 16, 2022
2 parents 811791c + 8009c67 commit 2ec7519
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sdkVersion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ it('provides a mapping for SDKv7.0', () => {
});
});

it('provides a mapping for SDKv7.1', () => {
expect(apiVersions({}, '7.1.0')).toEqual({
deviceApi: '10.1.0',
companionApi: '3.5.0',
});
});

it('provides a mapping for a known SDK version with a non-zero patch version', () => {
expect(apiVersions({}, '7.0.100')).toEqual({
deviceApi: '10.0.1',
Expand Down
1 change: 1 addition & 0 deletions src/sdkVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const apiBySdk: Record<string, ApiVersions> = {
'6.1': { deviceApi: '8.2.0', companionApi: '3.3.0' },
'6.2': { deviceApi: '8.2.0', companionApi: '3.3.0' },
'7.0': { deviceApi: '10.0.1', companionApi: '3.5.0' },
'7.1': { deviceApi: '10.1.0', companionApi: '3.5.0' },
};

export default function sdkVersion(
Expand Down

0 comments on commit 2ec7519

Please sign in to comment.