Skip to content

Commit

Permalink
test: update version mock
Browse files Browse the repository at this point in the history
  • Loading branch information
erikian committed Jan 17, 2024
1 parent e667281 commit b161aa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtl-spec/test-utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const { remote } = VersionSource;
export const mockVersion1 = {
source: remote,
state: missing,
version: '1.0.0',
version: '26.0.0',
};

export const mockVersion2 = {
source: remote,
state: missing,
version: '3.0.0-unsupported',
version: '28.0.0-unsupported',
};

/**
Expand All @@ -31,8 +31,8 @@ export function prepareAppState() {

(appState as unknown as StateMock).initVersions('2.0.2', {
...mockVersions,
'1.0.0': { ...mockVersion1 },
'3.0.0-unsupported': { ...mockVersion2 },
[mockVersion1.version]: { ...mockVersion1 },
[mockVersion2.version]: { ...mockVersion2 },
});

appState.channelsToShow = [
Expand Down

0 comments on commit b161aa5

Please sign in to comment.