Skip to content

Commit 90c0055

Browse files
committed
merging
1 parent 27bb4a7 commit 90c0055

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/client/controllers/graphQLController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const graphQLController = {
2929
// handles graphQL queries and mutations
3030
sendGqlToMain(args) {
3131
return new Promise((resolve) => {
32-
ipcRenderer.send("open-gql", args);
33-
ipcRenderer.on("reply-gql", (event, result) => {
32+
api.send("open-gql", args);
33+
api.receive("reply-gql", (result) => {
3434
// needs formatting because component reads them in a particular order
3535
result.reqResObj.response.cookies = this.cookieFormatter(
3636
result.reqResObj.response.cookies

test/electronTests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ const app = new Application({
1313
// Your electron path can be any binary
1414
// i.e for OSX an example path could be '/Applications/MyApp.app/Contents/MacOS/MyApp'
1515
// But for the sake of the example we fetch it from our node_modules.
16+
// path: path.join(__dirname, "../main.js"),
1617
path: electronPath,
1718
// The following line tells spectron to look and use the main.js file
1819
// and the package.json located 1 level above along with an arg, 'TEST_MODE'
20+
// args: [TEST_MODE],
1921
args: [path.join(__dirname, ".."), TEST_MODE],
2022
});
2123

0 commit comments

Comments
 (0)