import GuJumpgate snapshot from GitHub

This commit is contained in:
2026-05-20 20:33:51 +08:00
commit f8903dcd14
335 changed files with 179790 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const fs = require('node:fs');
test('Duck address generation routes the generator click through operation delay', () => {
const source = fs.readFileSync('content/duck-mail.js', 'utf8');
assert.match(source, /performOperationWithDelay\([\s\S]*duck-generate-address/);
});
test('2925 session preparation routes through operation delay while cleanup stays delay-free', () => {
const source = fs.readFileSync('content/mail-2925.js', 'utf8');
assert.match(source, /ENSURE_MAIL2925_SESSION[\s\S]*performOperationWithDelay/);
const deleteAllStart = source.indexOf("message.type === 'DELETE_ALL_EMAILS'");
assert.notEqual(deleteAllStart, -1, 'missing DELETE_ALL_EMAILS handler');
const deleteAllBlock = source.slice(deleteAllStart, source.indexOf('return false;', deleteAllStart));
assert.doesNotMatch(deleteAllBlock, /performOperationWithDelay\(/);
});