gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit097c52ba097c52baStyle the login error through its View idmre097c52ba/tests/cleanup-logic.mjs

1.5 KB

  1. // W60 architectural controls: the browser walks separately establish unchanged behavior.
  2. // Negative control: git 452f6a1 (the mission's starting tree).
  3. import { readFileSync, readdirSync } from 'node:fs';
  4. import { resolve } from 'node:path';
  5. const root = resolve(process.argv[2] || '.');
  6. const read = p => readFileSync(root + '/' + p, 'utf8');
  7. let passed = 0, failed = 0;
  8. function check(name, ok) { console.log(`${ok ? 'ok' : 'FAIL'} ${name}`); ok ? passed++ : failed++; }
  9. const files = readdirSync(root + '/components').filter(f => f.endsWith('.hl'));
  10. check('#28: every component stores control values in members', files.every(f => !/target\.elements|\.value\s*=/.test(read('components/' + f))));
  11. const main = read('components/main.hl');
  12. check('#32: shared character helpers and env lookup', /static isBase64/.test(read('lib/util.hl')) && /static isDigits/.test(read('lib/util.hl')) && !/static isKeyBase64/.test(read('lib/sshkeys.hl')) && !/static isDigits/.test(read('lib/git-helpers.hl')) && /envOr\('GITORIA_GIT'/.test(read('lib/git.hl')));
  13. check('#33: both login carriers call the users topic', /x = login\(code, session, null\)/.test(main) && /x = login\(code, req.session, &sessions\)/.test(read('lib/api.hl')) && !/session\.user = \{ id = x\.user\.id/.test(main));
  14. check('#33: tickets connect state belongs to its topic', /static completeConnect/.test(read('lib/tickets.hl')) && !/data\.connectState\s*=|data\.connectNote\s*=/.test(read('lib/api.hl')));
  15. console.log(`${passed} passed, ${failed} failed`);
  16. process.exitCode = failed ? 1 : 0;

Branches

Latest commits

  • 097c52baStyle the login error through its View idmre
  • c6d9c86aOwn the not-found code rule in its componentmre
  • 055424c2Record W61 replacement theme gates, sidebar repro and baselinemre
  • 2ed09441Use layouts theme 17e0f03 for W61 compatibilitymre
  • b8609a91Merge branch 'main' into w61-stylemre
  • 4639caf7Report W61 theme startup blocker and day39 Style probemre
  • 81f0a0bbREADME: two caches were restored by 90b4f72; log W62mre
  • 4a3f557eImport layouts theme ebd00b6 for W61 (startup blocked)mre
  • ab12a257Merge W62: #25 commit page measurements and proc repromre
  • 41323e49gitoria#25: measure commit request costs and reproduce blocking process waitsmre
  • 53ca42b2log: W60 merged, W61 W62 startedmre
  • 80870a33mission W61: style passmre
  • 560fd208Merge W60: helpers, bound forms, login in topics, two form fixes (gitoria#28 #32 #33)mre
  • ac5ba6a4log: W60, #25 measuredmre
  • 220f6342W60: record corrected form proof, full AE and remaining gapsmre
  • 7e31cac5gitoria#28: restrict reply form layout to reply formsmre
  • ae373cfdgitoria#28: keep each reply draft in its thread componentmre
  • eeeebd5agitoria: insert a newly created organization oncemre
  • 34d2d5cagitoria: clear the bound public-key textarea after creationmre
  • 119e54c0W60: restore conductor-owned tracking filesmre