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
@@ -0,0 +1,17 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const fs = require('node:fs');
test('background imports signup flow helper module', () => {
const source = fs.readFileSync('background.js', 'utf8');
assert.match(source, /importScripts\([\s\S]*'background\/signup-flow-helpers\.js'/);
});
test('signup flow helper module exposes a factory', () => {
const source = fs.readFileSync('background/signup-flow-helpers.js', 'utf8');
const globalScope = {};
const api = new Function('self', `${source}; return self.MultiPageSignupFlowHelpers;`)(globalScope);
assert.equal(typeof api?.createSignupFlowHelpers, 'function');
});