1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

feat: add support for latest MacOS (#580)

Co-authored-by: Seiji Kohara <9543980+seijikohara@users.noreply.github.com>
This commit is contained in:
Naor Peled
2025-11-22 23:50:54 +02:00
committed by GitHub
parent 4a6dacca08
commit 514510d847
5 changed files with 153 additions and 27 deletions

View File

@@ -38,6 +38,11 @@ test('getWindowsVersionName', (t) => {
test('getMacOSVersionName', (t) => {
t.is(getMacOSVersionName('10.14.5'), 'Mojave');
t.is(getMacOSVersionName('10.15'), 'Catalina');
t.is(getMacOSVersionName('11.0'), 'Big Sur');
t.is(getMacOSVersionName('12.3.1'), 'Monterey');
t.is(getMacOSVersionName('13.2.1'), 'Ventura');
t.is(getMacOSVersionName('14.0'), 'Sonoma');
t.is(getMacOSVersionName('15.1'), 'Sequoia');
t.is(getMacOSVersionName('10.999999'), void 0);
t.is(getMacOSVersionName('XXX'), void 0);
});