We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c197173 commit 8cdab4fCopy full SHA for 8cdab4f
src/cmd/upgrade.test.ts
@@ -14,3 +14,12 @@ describe('filterUpgrades', () => {
14
expect(upgrade.filterUpgrades('1.1.3', inputData)).toEqual(expectedData)
15
})
16
17
+
18
+describe('filterUpgrades RC version', () => {
19
+ it('should filter out lower versions', () => {
20
+ const inputData = [{ version: '2.1.0' }, { version: '2.1.1' }]
21
+ const expectedData = [{ version: '2.1.0' }, { version: '2.1.1' }]
22
23
+ expect(upgrade.filterUpgrades('2.1.1-rc.1', inputData)).toEqual(expectedData)
24
+ })
25
+})
0 commit comments