mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
chore(repo): remove dead code and useless tests (#3375)
This commit is contained in:
1 parent
7e177a1c90
commit
1cd62eb661
1391 files changed
+783
-120415
No files matched your search
@@ -24,6 +24,6 @@
|
||||
],
|
||||
"scripts": {
|
||||
"build": "cargo run --locked --quiet --manifest-path ../../../tools/ci/Cargo.toml -- build-desktop-native-addon",
|
||||
"test": "cargo test --manifest-path Cargo.toml && node --test test/*.test.mjs"
|
||||
"test": "cargo test --manifest-path Cargo.toml"
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import gatewaySocketPure from '../pure.cjs';
|
||||
|
||||
test('loader resolves native binaries for supported platforms and architectures', () => {
|
||||
assert.equal(gatewaySocketPure.nativeFileName('darwin', 'x64'), 'gateway-socket.darwin-x64.node');
|
||||
assert.equal(gatewaySocketPure.nativeFileName('darwin', 'arm64'), 'gateway-socket.darwin-arm64.node');
|
||||
assert.equal(gatewaySocketPure.nativeFileName('linux', 'x64'), 'gateway-socket.linux-x64-gnu.node');
|
||||
assert.equal(gatewaySocketPure.nativeFileName('linux', 'arm64'), 'gateway-socket.linux-arm64-gnu.node');
|
||||
assert.equal(gatewaySocketPure.nativeFileName('win32', 'x64'), 'gateway-socket.win32-x64-msvc.node');
|
||||
assert.equal(gatewaySocketPure.nativeFileName('win32', 'arm64'), 'gateway-socket.win32-arm64-msvc.node');
|
||||
});
|
||||
|
||||
test('loader rejects unsupported platforms and architectures', () => {
|
||||
assert.throws(() => gatewaySocketPure.nativeFileName('darwin', 'ia32'), /Unsupported gateway-socket target/);
|
||||
assert.throws(() => gatewaySocketPure.nativeFileName('aix', 'x64'), /Unsupported gateway-socket target/);
|
||||
});
|
||||
Reference in new issue
Block a user