electron/spec/api-screen-spec.coffee
2014-01-07 20:00:25 +08:00

9 lines
287 B
CoffeeScript

assert = require 'assert'
screen = require 'screen'
describe 'screen module', ->
describe 'screen.getCursorScreenPoint()', ->
it 'returns a point object', ->
point = screen.getCursorScreenPoint()
assert typeof(point.x), 'number'
assert typeof(point.y), 'number'