Skip to content

Commit

Permalink
Update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsakh committed Oct 4, 2018
1 parent 011a852 commit 835e71d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/api-process-spec.js
Expand Up @@ -39,11 +39,9 @@ describe('process module', () => {
})

describe('process.getMemoryFootprint()', () => {
it('resolves promise successfully with non zero value', (done) => {
process.getMemoryFootprint().then((memoryFootprint) => {
expect(memoryFootprint).to.be.a('number').greaterThan(0)
done()
})
it('resolves promise successfully with non zero value', async () => {
let memoryFootprint = await process.getMemoryFootprint()
expect(memoryFootprint).to.be.a('number').greaterThan(0)
})
})

Expand Down

0 comments on commit 835e71d

Please sign in to comment.