Skip to content

Commit

Permalink
Bump deps (#72)
Browse files Browse the repository at this point in the history
* bump the deps

* correct the lock-files

* chore: update test case using new API
  • Loading branch information
realdennis authored Jan 17, 2022
1 parent 8bf2480 commit f460f04
Show file tree
Hide file tree
Showing 5 changed files with 4,143 additions and 2,297 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "singleQuote": true }
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"homepage": "./",
"main": "src/index.js",
"dependencies": {
"codemirror": "^5.45.0",
"codemirror": "^5.65.0",
"github-markdown-css": "3.0.1",
"highlight.js": "9.15.8",
"nonaction": "0.0.5",
"normalize.css": "8.0.1",
"react": "16.8.6",
"react-codemirror2": "^6.0.0",
"react-dom": "16.8.6",
"react": "^16.14.0",
"react-codemirror2": "^6.0.1",
"react-dom": "^16.14",
"react-remarkable": "1.1.3",
"react-scripts": "^3.0.1",
"react-scripts": "^3.4.4",
"styled-components": "4.3.2",
"workbox-background-sync": "^5.1.3",
"workbox-broadcast-update": "^5.1.3",
Expand All @@ -34,10 +34,10 @@
"workbox-streams": "^5.1.3"
},
"devDependencies": {
"@testing-library/react": "^8.0.5",
"@testing-library/react": "^8.0.9",
"@testing-library/react-hooks": "^1.1.0",
"react-test-renderer": "^16.8.6",
"source-map-explorer": "^2.0.1"
"react-test-renderer": "^16.14.0",
"source-map-explorer": "^2.5.2"
},
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
Expand Down
8 changes: 4 additions & 4 deletions src/App/Components/Markdown/Previewer/Loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components';
const unWrappedLoading = ({ className }) => {
return (
<div className={className}>
<div className={className} id="suspense-loading">
<p />
<p />
<p />
Expand All @@ -25,12 +25,12 @@ export default styled(unWrappedLoading)`
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-name: load;
animation-duration: ${props => props.duration + 's'};
animation-duration: ${(props) => props.duration + 's'};
&:nth-child(1) {
animation-delay: ${props => props.duration / 3 + 's'};
animation-delay: ${(props) => props.duration / 3 + 's'};
}
&:nth-child(2) {
animation-delay: ${props => (2 * props.duration) / 3 + 's'};
animation-delay: ${(props) => (2 * props.duration) / 3 + 's'};
}
}
@keyframes load {
Expand Down
6 changes: 3 additions & 3 deletions src/App/Components/Markdown/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { render, waitForElement } from '@testing-library/react';
import { render, waitForElementToBeRemoved } from '@testing-library/react';
import { Provider } from 'nonaction';
import { TextContainer } from '../../Container';
import Markdown from './index.js';
Expand All @@ -11,8 +11,8 @@ test('<Markdown /> Previewer lazy load should work', async () => {
<Markdown />
</Provider>
);
const Previewer = await waitForElement(() =>
container.querySelector('.preview')
const Previewer = await waitForElementToBeRemoved(() =>
container.querySelector('#suspense-loading')
);
// Test Lazy load component using `waitforElement`!
// const Content = Previewer.querySelector('span');
Expand Down
Loading

0 comments on commit f460f04

Please sign in to comment.