🎨 code comments and test for getMenuBarHeight function

This commit is contained in:
Shubham 2017-05-30 17:26:02 -04:00
parent 793d5fd191
commit 62d9bf9bae
4 changed files with 21 additions and 6 deletions

View file

@ -18,4 +18,16 @@ describe('screen module', function () {
assert(display.size.height > 0)
})
})
describe('screen.getMenuBarHeight()', function () {
if (process.platform !== 'darwin') {
return
}
it('returns an integer', function () {
var screenHeight = screen.getMenuBarHeight()
assert.equal(typeof screenHeight, 'number')
})
})
})