chore: update to standard 12
This commit is contained in:
parent
9e85bdb02c
commit
558fff69e7
198 changed files with 4455 additions and 2940 deletions
|
@ -1,19 +1,19 @@
|
|||
const assert = require('assert')
|
||||
const {screen} = require('electron')
|
||||
const { screen } = require('electron')
|
||||
|
||||
describe('screen module', () => {
|
||||
describe('screen.getCursorScreenPoint()', () => {
|
||||
it('returns a point object', () => {
|
||||
const point = screen.getCursorScreenPoint()
|
||||
assert.equal(typeof point.x, 'number')
|
||||
assert.equal(typeof point.y, 'number')
|
||||
assert.strictEqual(typeof point.x, 'number')
|
||||
assert.strictEqual(typeof point.y, 'number')
|
||||
})
|
||||
})
|
||||
|
||||
describe('screen.getPrimaryDisplay()', () => {
|
||||
it('returns a display object', () => {
|
||||
const display = screen.getPrimaryDisplay()
|
||||
assert.equal(typeof display.scaleFactor, 'number')
|
||||
assert.strictEqual(typeof display.scaleFactor, 'number')
|
||||
assert(display.size.width > 0)
|
||||
assert(display.size.height > 0)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue