mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 17:45:42 +00:00
feb3d19987
- 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.
15 lines
586 B
JavaScript
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');
|
|
});
|
|
});
|