Унифицировать HEADER в формате 1.0

This commit is contained in:
AidarKC
2026-12-02 17:57:28 +03:00
parent 58e4bac3c8
commit c61cbf239c
24 changed files with 230 additions and 394 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { readFileSync } from 'node:fs';
import { profileCardHtml } from '../js/components/profile-card.js';
import { accountRoleFromHeader, confirmationRights } from '../js/services/account-voting.js';
test('only explicit HEADER V3 type 1 is Primary; no legacy fallbacks', () => {
test('only explicit HEADER 1.0 type 1 is Primary; no legacy fallbacks', () => {
assert.equal(accountRoleFromHeader(1), 'primary');
assert.equal(accountRoleFromHeader(0), 'non_voting');
for (const x of [undefined, null, '1', 2, true]) assert.equal(accountRoleFromHeader(x), '');