feat: add serviceName to 'child-process-gone' / app.getAppMetrics() (#25975)

This commit is contained in:
Milan Burda 2020-10-19 13:55:47 +02:00 committed by GitHub
parent c27e5fdbb6
commit decb1eb87b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 3 deletions

View file

@ -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');
}