Skip to content

Commit

Permalink
test(tapd): update unit tests for tapd v0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jamaljsr committed Jul 28, 2023
1 parent a60d21d commit 5e3b341
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('ChangeTapBackendModal', () => {
const { getByText, queryByText, changeSelect, store } = await renderComponent();
store.getActions().app.setRepoState(testRepoState);
const warning =
`alice-tap is running tapd v0.2.2-alpha which is compatible with LND v0.16.0-beta and newer.` +
`alice-tap is running tapd v0.2.3-alpha which is compatible with LND v0.16.0-beta and newer.` +
` dave is running LND v0.7.1-beta so it cannot be used.`;
expect(queryByText(warning)).not.toBeInTheDocument();
expect(getByText('Cancel')).toBeInTheDocument();
Expand Down
2 changes: 1 addition & 1 deletion src/store/models/designer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ describe('Designer model', () => {
expect.objectContaining({
message: 'Failed to add node',
error: new Error(
'This network does not contain a LND v0.16.0-beta (or higher) node which is required for tapd v0.2.2-alpha',
'This network does not contain a LND v0.16.0-beta (or higher) node which is required for tapd v0.2.3-alpha',
),
}),
);
Expand Down
5 changes: 3 additions & 2 deletions src/utils/tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ export const testRepoState: DockerRepoState = {
versions: [],
},
tapd: {
latest: '0.2.2-alpha',
versions: ['0.2.2-alpha', '0.2.0-alpha'],
latest: '0.2.3-alpha',
versions: ['0.2.3-alpha', '0.2.2-alpha', '0.2.0-alpha'],
compatibility: {
'0.2.3-alpha': '0.16.0-beta',
'0.2.2-alpha': '0.16.0-beta',
'0.2.0-alpha': '0.16.0-beta',
},
Expand Down

0 comments on commit 5e3b341

Please sign in to comment.