Skip to content

Commit

Permalink
fix: wrong code style
Browse files Browse the repository at this point in the history
  • Loading branch information
helmuthdu committed Sep 6, 2020
1 parent ac62042 commit 0f46f24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/hooks/logger.hook.js
Expand Up @@ -17,10 +17,7 @@ export const useLogger = () => {

const { type, state: prevState, action, elapsed } = logger.current;

const timestamp = new Date()
.toISOString()
.split('T')[1]
.substr(0, 12);
const timestamp = new Date().toISOString().split('T')[1].substr(0, 12);

console.groupCollapsed(
`%caction %c${type} %c@ ${timestamp} | ${elapsed}ms`,
Expand Down
10 changes: 4 additions & 6 deletions src/setupTests.js
@@ -1,22 +1,20 @@
require('@testing-library/jest-dom/extend-expect');
require('mutationobserver-shim');
require('@formatjs/intl-relativetimeformat/dist/locale-data/en');
require('@formatjs/intl-relativetimeformat/polyfill');

global.fetch = require('jest-fetch-mock');

window.matchMedia =
window.matchMedia ||
function() {
function () {
return {
matches: false,
addListener: function() {},
removeListener: function() {}
addListener: function () {},
removeListener: function () {}
};
};

window.requestAnimationFrame =
window.requestAnimationFrame ||
function(callback) {
function (callback) {
setTimeout(callback, 0);
};

0 comments on commit 0f46f24

Please sign in to comment.