mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 09:35:39 +00:00
8b916488b9
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.
33 lines
992 B
JavaScript
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);
|
|
});
|
|
});
|