mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-22 16:18:45 -05:00
desktop: more double to single quotes
This commit is contained in:
@@ -19,7 +19,7 @@ const removeMsgById = (id) => {
|
||||
}
|
||||
|
||||
const createIpc = () => {
|
||||
console.warn("Missing 'ipc'. Polyfilling in development mode.") // eslint-disable-line no-console
|
||||
console.warn('Missing "ipc". Polyfilling in development mode.') // eslint-disable-line no-console
|
||||
return {
|
||||
on () {},
|
||||
send () {},
|
||||
@@ -28,7 +28,7 @@ const createIpc = () => {
|
||||
|
||||
const ipc = window.ipc != null ? window.ipc : (window.ipc = createIpc())
|
||||
|
||||
ipc.on("response", (event, obj = {}) => {
|
||||
ipc.on('response', (event, obj = {}) => {
|
||||
const { id, __error, data } = obj
|
||||
const msg = msgs[id]
|
||||
|
||||
@@ -89,7 +89,7 @@ const ipcBus = (...args) => {
|
||||
}
|
||||
|
||||
// pass in request, id, and remaining args
|
||||
ipc.send(...["request", id].concat(args))
|
||||
ipc.send(...['request', id].concat(args))
|
||||
|
||||
return fn()
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export class RunsStore {
|
||||
@action setRuns (runs) {
|
||||
this.runs = _.map(runs, (run) => new Run(run))
|
||||
|
||||
this.lastUpdated = moment().format("h:mm:ssa")
|
||||
this.lastUpdated = moment().format('h:mm:ssa')
|
||||
this.error = null
|
||||
this.isLoading = false
|
||||
this.isLoaded = true
|
||||
|
||||
@@ -53,7 +53,7 @@ class Updater {
|
||||
result = 'An error occurred updating: \nYou can manually update Cypress by running \'cypress install\' from your terminal or by downloading it again.'
|
||||
break
|
||||
default:
|
||||
result = ""
|
||||
result = ''
|
||||
}
|
||||
|
||||
return result
|
||||
@@ -70,12 +70,12 @@ class Updater {
|
||||
|
||||
openUpdateWindow () {
|
||||
return ipc.windowOpen({
|
||||
position: "center",
|
||||
position: 'center',
|
||||
width: 300,
|
||||
height: 240,
|
||||
toolbar: false,
|
||||
title: "Updates",
|
||||
type: "UPDATES",
|
||||
title: 'Updates',
|
||||
type: 'UPDATES',
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user