SHA256
Унифицировать HEADER в формате 1.0
This commit is contained in:
@@ -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), '');
|
||||
|
||||
Reference in New Issue
Block a user