🎨 ✅ code comments and test for getMenuBarHeight function
This commit is contained in:
parent
793d5fd191
commit
62d9bf9bae
4 changed files with 21 additions and 6 deletions
|
@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue