mirror of
https://git.freebsd.org/ports.git
synced 2025-05-16 17:21:49 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
20 lines
1.3 KiB
TypeScript
20 lines
1.3 KiB
TypeScript
--- electron/spec/api-process-spec.ts.orig 2023-01-24 16:58:16 UTC
|
|
+++ electron/spec/api-process-spec.ts
|
|
@@ -54,7 +54,7 @@ describe('process module', () => {
|
|
it('resolves promise successfully with valid data', async () => {
|
|
const memoryInfo = await w.webContents.executeJavaScript('process.getProcessMemoryInfo()');
|
|
expect(memoryInfo).to.be.an('object');
|
|
- if (process.platform === 'linux' || process.platform === 'win32') {
|
|
+ if (process.platform === 'linux' || process.platform === 'win32' || process.platform === 'freebsd') {
|
|
expect(memoryInfo.residentSet).to.be.a('number').greaterThan(0);
|
|
}
|
|
expect(memoryInfo.private).to.be.a('number').greaterThan(0);
|
|
@@ -164,7 +164,7 @@ describe('process module', () => {
|
|
it('resolves promise successfully with valid data', async () => {
|
|
const memoryInfo = await process.getProcessMemoryInfo();
|
|
expect(memoryInfo).to.be.an('object');
|
|
- if (process.platform === 'linux' || process.platform === 'win32') {
|
|
+ if (process.platform === 'linux' || process.platform === 'win32' || process.platform === 'freebsd') {
|
|
expect(memoryInfo.residentSet).to.be.a('number').greaterThan(0);
|
|
}
|
|
expect(memoryInfo.private).to.be.a('number').greaterThan(0);
|