forked from Lainports/opnsense-ports
29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
--- electron/spec/api-screen-spec.ts.orig 2024-07-15 15:22:56 UTC
|
|
+++ electron/spec/api-screen-spec.ts
|
|
@@ -94,7 +94,7 @@ describe('screen module', () => {
|
|
|
|
const { size } = display!;
|
|
|
|
- if (process.platform === 'linux') {
|
|
+ if (process.platform === 'linux' || process.platform === 'freebsd') {
|
|
expect(size).to.have.property('width').that.is.a('number');
|
|
expect(size).to.have.property('height').that.is.a('number');
|
|
} else {
|
|
@@ -108,7 +108,7 @@ describe('screen module', () => {
|
|
|
|
const { workAreaSize } = display!;
|
|
|
|
- if (process.platform === 'linux') {
|
|
+ if (process.platform === 'linux' || process.platform === 'freebsd') {
|
|
expect(workAreaSize).to.have.property('width').that.is.a('number');
|
|
expect(workAreaSize).to.have.property('height').that.is.a('number');
|
|
} else {
|
|
@@ -124,7 +124,7 @@ describe('screen module', () => {
|
|
expect(bounds).to.have.property('x').that.is.a('number');
|
|
expect(bounds).to.have.property('y').that.is.a('number');
|
|
|
|
- if (process.platform === 'linux') {
|
|
+ if (process.platform === 'linux' || process.platform === 'freebsd') {
|
|
expect(bounds).to.have.property('width').that.is.a('number');
|
|
expect(bounds).to.have.property('height').that.is.a('number');
|
|
} else {
|