refs #850 Convert preference's tests to typescript

This commit is contained in:
AkiraFukushima 2019-03-28 23:35:25 +09:00
parent 01374aa6af
commit e49d27c30a
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ describe('Preferences/Language', () => {
describe('loadLanguage', () => {
beforeEach(() => {
ipcMain.once('get-preferences', (event, _) => {
ipcMain.once('get-preferences', (event: any, _) => {
event.sender.send('response-get-preferences', {
language: {
language: DefaultLanguage.ja.key
@ -53,7 +53,7 @@ describe('Preferences/Language', () => {
describe('changeLanguage', () => {
beforeEach(() => {
ipcMain.once('change-language', (event, key) => {
ipcMain.once('change-language', (event: any, key: string) => {
event.sender.send('response-change-language', key)
})
})

View File

@ -49,7 +49,7 @@ describe('Preferences/Notification', () => {
describe('loadNotification', () => {
beforeEach(() => {
ipcMain.once('get-preferences', (event, _) => {
ipcMain.once('get-preferences', (event: any, _) => {
event.sender.send('response-get-preferences', {
notification: {
notify: {
@ -77,7 +77,7 @@ describe('Preferences/Notification', () => {
describe('updateNotify', () => {
beforeEach(() => {
ipcMain.once('update-preferences', (event, conf) => {
ipcMain.once('update-preferences', (event: any, conf: object) => {
event.sender.send('response-update-preferences', conf)
})
})