Files
BetterDesk/web-nodejs/tests/agentClientBuildWorker.test.js
T
UNITRONIX feb3d19987 chore: update .gitignore and Gitleaks configuration, enhance CI workflows
- Updated .gitignore to include new binary paths and retain .gitkeep.
- Modified Gitleaks configuration to ignore additional directories.
- Adjusted CI workflows to prevent execution on version bump pushes and improved version bump handling in scripts.
- Bumped BetterDesk Console Manager version to 3.3.136 in betterdesk.sh and related scripts.
2026-07-13 17:34:41 +02:00

15 lines
586 B
JavaScript

'use strict';
jest.mock('../services/database', () => ({}));
jest.mock('../services/agentBundleService', () => ({}));
jest.mock('../config/config', () => ({ dataDir: '/tmp/betterdesk-test' }));
describe('agentClientBuildWorker module', () => {
it('exports startWorker and enqueueBuildsForHash', () => {
const worker = require('../services/agentClientBuildWorker');
expect(typeof worker.startWorker).toBe('function');
expect(typeof worker.enqueueBuildsForHash).toBe('function');
expect(typeof worker.rebuildBundleById).toBe('function');
});
});