From ff71e06ad1ede135b8929c46c4b55a7dd3b65dc8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 Jan 2023 11:08:42 +0100 Subject: Add user registration policy info --- server/tests/helpers/version.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server') 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 () { expect(compareSemVer('3.4.0-alpha.1', '3.4.0-beta.1')).to.be.below(0) expect(compareSemVer('3.4.0-beta.1', '3.4.0-beta.2')).to.be.below(0) expect(compareSemVer('3.4.0-beta.1', '3.5.0-alpha.1')).to.be.below(0) + + expect(compareSemVer('3.4.0-alpha.1', '3.4.0-nightly.4')).to.be.below(0) + expect(compareSemVer('3.4.0-nightly.3', '3.4.0-nightly.4')).to.be.below(0) + expect(compareSemVer('3.3.0-nightly.5', '3.4.0-nightly.4')).to.be.below(0) }) it('Should correctly compare a stable and unstable versions', async function () { expect(compareSemVer('3.4.0', '3.4.1-beta.1')).to.be.below(0) expect(compareSemVer('3.4.0-beta.1', '3.4.0-beta.2')).to.be.below(0) expect(compareSemVer('3.4.0-beta.1', '3.4.0')).to.be.below(0) + expect(compareSemVer('3.4.0-nightly.4', '3.4.0')).to.be.below(0) }) }) -- cgit v1.2.3