refs #850 Convert preference's tests to typescript
This commit is contained in:
parent
01374aa6af
commit
e49d27c30a
|
@ -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)
|
||||
})
|
||||
})
|
|
@ -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)
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue