background-step-registry.test.js 468 B

1234567891011
  1. const test = require('node:test');
  2. const assert = require('node:assert/strict');
  3. const fs = require('node:fs');
  4. test('background imports step registry module and uses sparse order values', () => {
  5. const source = fs.readFileSync('background.js', 'utf8');
  6. assert.match(source, /background\/steps\/registry\.js/);
  7. assert.match(source, /order:\s*10/);
  8. assert.match(source, /order:\s*90/);
  9. assert.match(source, /stepRegistry\.executeStep\(step,\s*state\)/);
  10. });