aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/helpers/version.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-23 11:08:42 +0100
committerChocobozzz <me@florianbigard.com>2023-01-23 14:49:29 +0100
commitff71e06ad1ede135b8929c46c4b55a7dd3b65dc8 (patch)
tree1d43c3bc8ae6e40aee03ee05b1d087bae9ca1449 /server/tests/helpers/version.ts
parent4115f20084f302f497be9cb12237564679ca54ec (diff)
downloadPeerTube-ff71e06ad1ede135b8929c46c4b55a7dd3b65dc8.tar.gz
PeerTube-ff71e06ad1ede135b8929c46c4b55a7dd3b65dc8.tar.zst
PeerTube-ff71e06ad1ede135b8929c46c4b55a7dd3b65dc8.zip
Add user registration policy info
Diffstat (limited to 'server/tests/helpers/version.ts')
-rw-r--r--server/tests/helpers/version.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/helpers/version.ts b/server/tests/helpers/version.ts
index 7d5600715..2a90efba3 100644
--- a/server/tests/helpers/version.ts
+++ b/server/tests/helpers/version.ts
@@ -21,11 +21,16 @@ describe('Version', function () {
21 expect(compareSemVer('3.4.0-alpha.1', '3.4.0-beta.1')).to.be.below(0) 21 expect(compareSemVer('3.4.0-alpha.1', '3.4.0-beta.1')).to.be.below(0)
22 expect(compareSemVer('3.4.0-beta.1', '3.4.0-beta.2')).to.be.below(0) 22 expect(compareSemVer('3.4.0-beta.1', '3.4.0-beta.2')).to.be.below(0)
23 expect(compareSemVer('3.4.0-beta.1', '3.5.0-alpha.1')).to.be.below(0) 23 expect(compareSemVer('3.4.0-beta.1', '3.5.0-alpha.1')).to.be.below(0)
24
25 expect(compareSemVer('3.4.0-alpha.1', '3.4.0-nightly.4')).to.be.below(0)
26 expect(compareSemVer('3.4.0-nightly.3', '3.4.0-nightly.4')).to.be.below(0)
27 expect(compareSemVer('3.3.0-nightly.5', '3.4.0-nightly.4')).to.be.below(0)
24 }) 28 })
25 29
26 it('Should correctly compare a stable and unstable versions', async function () { 30 it('Should correctly compare a stable and unstable versions', async function () {
27 expect(compareSemVer('3.4.0', '3.4.1-beta.1')).to.be.below(0) 31 expect(compareSemVer('3.4.0', '3.4.1-beta.1')).to.be.below(0)
28 expect(compareSemVer('3.4.0-beta.1', '3.4.0-beta.2')).to.be.below(0) 32 expect(compareSemVer('3.4.0-beta.1', '3.4.0-beta.2')).to.be.below(0)
29 expect(compareSemVer('3.4.0-beta.1', '3.4.0')).to.be.below(0) 33 expect(compareSemVer('3.4.0-beta.1', '3.4.0')).to.be.below(0)
34 expect(compareSemVer('3.4.0-nightly.4', '3.4.0')).to.be.below(0)
30 }) 35 })
31}) 36})