git-remote-igit 0.1.1

Git remote helper for the native igit:// InfiniGit transport
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict';
const test = require('node:test');
const assert = require('node:assert/strict');
const { targetFor } = require('../lib/platform');

test('maps supported npm platforms to release targets', () => {
  assert.equal(targetFor('linux', 'x64'), 'x86_64-unknown-linux-gnu');
  assert.equal(targetFor('linux', 'arm64'), 'aarch64-unknown-linux-gnu');
  assert.equal(targetFor('darwin', 'arm64'), 'aarch64-apple-darwin');
  assert.equal(targetFor('win32', 'x64'), 'x86_64-pc-windows-msvc');
});

test('rejects unsupported platforms', () => {
  assert.throws(() => targetFor('aix', 'ppc64'), /Unsupported platform/);
});