Skip to content

Commit

Permalink
Adding tests for window-aux
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 committed Jun 7, 2020
1 parent e9db00c commit 757421b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions __tests__/__renderer__/window-aux.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-disable no-undef */
const { bindDevToolsShortcut, showAlert, showDialog } = require('../../js/window-aux');

describe('Window Aux', function() {
process.env.NODE_ENV = 'test';

describe('bindDevToolsShortcut(window)', function() {
const devToolsShortcut = new KeyboardEvent('keyup', {'keyCode': 73 , 'ctrlKey': true, 'shiftKey': true});

test('should not open anything', () => {
//
});

test('should open anything', () => {
bindDevToolsShortcut(global);
document.dispatchEvent(devToolsShortcut);
//
});
});

describe('dialogs', function() {
test('showDialog()', async() => {
// await sendWaiverDay(validJSDay);
// await sendWaiverDay(validJSDay2);
// await sendWaiverDay(garbageString);
// await sendWaiverDay(incompleteDate);
});
});
});

0 comments on commit 757421b

Please sign in to comment.