feat: add name to app.getAppMetrics() output (#24359)
This commit is contained in:
parent
25a36a43c1
commit
7fd96cd188
6 changed files with 26 additions and 6 deletions
|
@ -1079,6 +1079,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') {
|
||||
expect(entry).to.have.property('name').that.is.a('string');
|
||||
}
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
expect(entry.memory).to.have.property('privateBytes').that.is.greaterThan(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue