28 lines
1.3 KiB
TypeScript
28 lines
1.3 KiB
TypeScript
--- electron/spec/api-tray-spec.ts.orig 2026-05-07 20:19:20 UTC
|
|
+++ electron/spec/api-tray-spec.ts
|
|
@@ -32,13 +32,13 @@ describe('tray module', () => {
|
|
}).to.throw(/Failed to load image from path (.+)/);
|
|
});
|
|
|
|
- ifit(process.platform !== 'linux')('throws a descriptive error if an invalid guid is given', () => {
|
|
+ ifit(process.platform !== 'linux' && process.platform !== 'freebsd')('throws a descriptive error if an invalid guid is given', () => {
|
|
expect(() => {
|
|
tray = new Tray(nativeImage.createEmpty(), 'I am not a guid');
|
|
}).to.throw('Invalid GUID format');
|
|
});
|
|
|
|
- ifit(process.platform !== 'linux')('accepts a valid guid', () => {
|
|
+ ifit(process.platform !== 'linux' && process.platform !== 'freebsd')('accepts a valid guid', () => {
|
|
expect(() => {
|
|
tray = new Tray(nativeImage.createEmpty(), '0019A433-3526-48BA-A66C-676742C0FEFB');
|
|
}).to.not.throw();
|
|
@@ -139,7 +139,7 @@ describe('tray module', () => {
|
|
tray.destroy();
|
|
});
|
|
|
|
- ifit(process.platform !== 'linux')('returns a bounds object', function () {
|
|
+ ifit(process.platform !== 'linux' && process.platform !== 'freebsd')('returns a bounds object', function () {
|
|
const bounds = tray.getBounds();
|
|
expect(bounds).to.be.an('object').and.to.have.all.keys('x', 'y', 'width', 'height');
|
|
});
|