Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/electron/electron.git
π¨ Use const
This commit is contained in:
Π ΠΎΠ΄ΠΈΡΠ΅Π»Ρ
e1cf61f0cb
ΠΠΎΠΌΠΌΠΈΡ
b688539fe9
|
@ -175,11 +175,11 @@ describe('ipc module', function () {
|
|||
})
|
||||
|
||||
it('supports TypedArray', function () {
|
||||
let values = [1, 2, 3, 4]
|
||||
const values = [1, 2, 3, 4]
|
||||
assert.deepEqual(printName.typedArray(values), values)
|
||||
|
||||
values = new Int16Array([1, 2, 3, 4])
|
||||
assert.deepEqual(printName.typedArray(values), values)
|
||||
const int16values = new Int16Array([1, 2, 3, 4])
|
||||
assert.deepEqual(printName.typedArray(int16values), int16values)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -309,7 +309,7 @@ describe('ipc module', function () {
|
|||
})
|
||||
|
||||
it('can send instances of Buffer', function (done) {
|
||||
var buffer = Buffer.from('hello')
|
||||
const buffer = Buffer.from('hello')
|
||||
ipcRenderer.once('message', function (event, message) {
|
||||
assert.ok(buffer.equals(message))
|
||||
done()
|
||||
|
|
ΠΠ°Π³ΡΡΠ·ΠΊΠ°β¦
Π‘ΡΡΠ»ΠΊΠ° Π² Π½ΠΎΠ²ΠΎΠΉ Π·Π°Π΄Π°ΡΠ΅