Skip to content

Commit

Permalink
fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
connectdotz committed Jul 2, 2023
1 parent ec01203 commit 97df410
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/extension-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1223,12 +1223,13 @@ describe('ExtensionManager', () => {
expect(ext2.onDidChangeActiveTextEditor).not.toHaveBeenCalled();
});
it.each`
case | version | showChoice | choice | showRN
${1} | ${'4.6'} | ${false} | ${undefined} | ${false}
${2} | ${'5.0.0'} | ${true} | ${undefined} | ${false}
${3} | ${'5.0.0'} | ${true} | ${'See What Is Changed'} | ${true}
${4} | ${'5.0.1'} | ${true} | ${undefined} | ${false}
${5} | ${'6.0.0'} | ${false} | ${undefined} | ${false}
case | version | showChoice | choice | showRN
${1} | ${'4.6'} | ${false} | ${undefined} | ${false}
${2} | ${'5.0.0'} | ${true} | ${undefined} | ${false}
${3} | ${'5.0.0'} | ${true} | ${'See What Is Changed'} | ${true}
${4} | ${'5.0.1'} | ${true} | ${undefined} | ${false}
${5} | ${'6.0.0'} | ${true} | ${undefined} | ${false}
${6} | ${'99.0.0'} | ${false} | ${undefined} | ${false}
`(
'show release note once for specific version: case $case',
async ({ version, showChoice, choice, showRN }) => {
Expand Down

0 comments on commit 97df410

Please sign in to comment.