Files
BetterDesk/web-nodejs/tests/updateService.agentRebuild.test.js
T
UNITRONIX 8b916488b9 Complete web console i18n audit and refine server attestation.
Sync all 26 locale files to the EN+PL baseline (3432 keys), add OBSIDIAN tier strings, and ship i18n apply/audit tooling. Improve server attestation UX and convert orphaned node:test scripts to Jest so the full test suite passes.
2026-06-06 02:36:57 +02:00

33 lines
992 B
JavaScript

'use strict';
const updateService = require('../services/updateService');
describe('updateService shouldQueueAgentRebuild', () => {
it('triggers on support-agent source changes', () => {
const data = {
grouped: {
supportAgent: [{ path: 'betterdesk-support-agent/urls.go' }],
},
};
expect(updateService.shouldQueueAgentRebuild(data)).toBe(true);
});
it('triggers on build worker-only commits', () => {
const data = {
grouped: {
console: [{ path: 'web-nodejs/services/agentBuildWorker.js' }],
},
};
expect(updateService.shouldQueueAgentRebuild(data)).toBe(true);
});
it('ignores unrelated console changes', () => {
const data = {
grouped: {
console: [{ path: 'web-nodejs/views/settings.ejs' }],
},
};
expect(updateService.shouldQueueAgentRebuild(data)).toBe(false);
});
});