mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
feat: add serviceName to 'child-process-gone' / app.getAppMetrics() (#25975)
This commit is contained in:
@@ -1176,6 +1176,10 @@ describe('app module', () => {
|
||||
expect(entry.memory).to.have.property('workingSetSize').that.is.greaterThan(0);
|
||||
expect(entry.memory).to.have.property('peakWorkingSetSize').that.is.greaterThan(0);
|
||||
|
||||
if (entry.type === 'Utility' || entry.type === 'GPU') {
|
||||
expect(entry.serviceName).to.be.a('string').that.does.not.equal('');
|
||||
}
|
||||
|
||||
if (entry.type === 'Utility') {
|
||||
expect(entry).to.have.property('name').that.is.a('string');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user