feat: Add creationTime function to process (#13542)
* Add process creation time * Making docs clear for process creation time * Address comments for process creation time * Add process info cc file * fixing comments around documentation * Update doc for return val * Capitalize number in docs * chore: bump electron-typescript-definitions
This commit is contained in:
parent
9902d42760
commit
19cb5bad94
6 changed files with 34 additions and 7 deletions
|
@ -1,6 +1,13 @@
|
|||
const {expect} = require('chai')
|
||||
|
||||
describe('process module', () => {
|
||||
describe('process.getCreationTime()', () => {
|
||||
it('returns a creation time', () => {
|
||||
const creationTime = process.getCreationTime()
|
||||
expect(creationTime).to.be.a('number').and.be.at.least(0)
|
||||
})
|
||||
})
|
||||
|
||||
describe('process.getCPUUsage()', () => {
|
||||
it('returns a cpu usage object', () => {
|
||||
const cpuUsage = process.getCPUUsage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue