Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sibnerian committed Feb 19, 2017
1 parent bf2829f commit ab3be8e
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 20 deletions.
13 changes: 0 additions & 13 deletions build/index.js

This file was deleted.

1 change: 0 additions & 1 deletion build/index.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "electron-promise-ipc",
"version": "0.0.3",
"version": "0.0.4",
"description": "Run IPC calls with a promise API.",
"scripts": {
"pretest": "npm run --silent lint && npm run build",
"coverage": "istanbul cover _mocha",
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
"test": "npm run coverage",
"lint": "eslint .",
"build": "mkdirp build && babel index.js --out-file build/index.js --source-maps",
"build": "mkdirp build && babel src --out-dir build --source-maps",
"prepublish": "npm run build",
"clean": "rimraf build"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/index-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const expect = chai.expect;

describe('index', () => {
it('imports the renderer promiseIpc in the renderer environment', () => {
const promiseIpc = proxyquire('../index', {
const promiseIpc = proxyquire('../src/index', {
'./renderer': renderer,
'./mainProcess': mainProcess,
'is-electron-renderer': true,
Expand All @@ -17,7 +17,7 @@ describe('index', () => {
});

it('imports the main process promiseIpc in the mainProcess environment', () => {
const promiseIpc = proxyquire('../index', {
const promiseIpc = proxyquire('../src/index', {
'./renderer': renderer,
'./mainProcess': mainProcess,
'is-electron-renderer': false,
Expand Down
2 changes: 1 addition & 1 deletion test/mainProcess-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ chai.use(chaiAsPromised);
const expect = chai.expect;
const uuid = 'totally_random_uuid';

const { default: mainProcessDefault, PromiseIpc } = proxyquire('../mainProcess', {
const { default: mainProcessDefault, PromiseIpc } = proxyquire('../src/mainProcess', {
electron: { ipcMain },
'uuid/v4': () => uuid,
});
Expand Down
2 changes: 1 addition & 1 deletion test/renderer-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const generateRoute = (function generateRoute() {
return () => i++; // eslint-disable-line no-plusplus
}());

const { default: renderer, PromiseIpc } = proxyquire('../renderer', {
const { default: renderer, PromiseIpc } = proxyquire('../src/renderer', {
electron: { ipcRenderer },
'uuid/v4': () => uuid,
});
Expand Down

0 comments on commit ab3be8e

Please sign in to comment.