mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 01:29:48 +00:00
web: update dependencies
This commit is contained in:
parent
46cd40f493
commit
1f6015d72a
2373
web/package-lock.json
generated
2373
web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -7,17 +7,17 @@
|
||||
"start": "gulp"
|
||||
},
|
||||
"dependencies": {
|
||||
"@popperjs/core": "^2.9.2",
|
||||
"@popperjs/core": "^2.9.3",
|
||||
"bootstrap": "^3.4.1",
|
||||
"classnames": "^2.3.1",
|
||||
"codemirror": "^5.62.0",
|
||||
"codemirror": "^5.62.3",
|
||||
"lodash": "^4.17.21",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-popper": "^2.2.5",
|
||||
"react-redux": "^7.2.4",
|
||||
"redux": "^4.1.0",
|
||||
"redux": "^4.1.1",
|
||||
"redux-thunk": "^2.3.0",
|
||||
"shallowequal": "^1.1.0",
|
||||
"stable": "^0.1.8"
|
||||
@ -25,23 +25,23 @@
|
||||
"devDependencies": {
|
||||
"@testing-library/dom": "^8.1.0",
|
||||
"@testing-library/jest-dom": "^5.14.1",
|
||||
"@testing-library/react": "^11.2.7",
|
||||
"@testing-library/react": "^12.0.0",
|
||||
"@testing-library/user-event": "^13.2.1",
|
||||
"@types/jest": "^26.0.23",
|
||||
"@types/redux-mock-store": "^1.0.2",
|
||||
"esbuild": "^0.12.9",
|
||||
"@types/jest": "^27.0.1",
|
||||
"@types/redux-mock-store": "^1.0.3",
|
||||
"esbuild": "^0.12.21",
|
||||
"esbuild-jest": "^0.5.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-clean-css": "^4.3.0",
|
||||
"gulp-esbuild": "^0.8.2",
|
||||
"gulp-less": "^4.0.1",
|
||||
"gulp-esbuild": "^0.8.5",
|
||||
"gulp-less": "^5.0.0",
|
||||
"gulp-livereload": "^4.0.2",
|
||||
"gulp-notify": "^4.0.0",
|
||||
"gulp-peg": "^0.2.0",
|
||||
"gulp-plumber": "^1.2.1",
|
||||
"gulp-replace": "^1.1.3",
|
||||
"gulp-sourcemaps": "^3.0.0",
|
||||
"jest": "^27.0.4",
|
||||
"jest": "^27.0.6",
|
||||
"jest-fetch-mock": "^3.0.3",
|
||||
"react-test-renderer": "^17.0.2",
|
||||
"redux-mock-store": "^1.5.4",
|
||||
|
@ -1,19 +0,0 @@
|
||||
import * as React from "react"
|
||||
import CommandBar from '../../../components/CommandBar'
|
||||
import {render} from "../../test-utils"
|
||||
import fetchMock, {enableFetchMocks} from "jest-fetch-mock";
|
||||
import {waitFor} from '@testing-library/react'
|
||||
|
||||
enableFetchMocks()
|
||||
|
||||
|
||||
test('CommandBar Component', async () => {
|
||||
fetchMock.mockResponseOnce(JSON.stringify({"commands": "foo"}));
|
||||
|
||||
const {asFragment, store} = render(
|
||||
<CommandBar/>
|
||||
);
|
||||
await waitFor(() => {
|
||||
expect(asFragment()).toMatchSnapshot();
|
||||
});
|
||||
})
|
@ -1,56 +0,0 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`CommandBar Component 1`] = `
|
||||
<DocumentFragment>
|
||||
<div
|
||||
class="command"
|
||||
>
|
||||
<div
|
||||
class="command-title"
|
||||
>
|
||||
Command Result
|
||||
</div>
|
||||
<div
|
||||
class="command-result"
|
||||
/>
|
||||
<div
|
||||
class="argument-suggestion popover top"
|
||||
>
|
||||
<div
|
||||
class="arrow"
|
||||
/>
|
||||
<div
|
||||
class="popover-content"
|
||||
>
|
||||
<div>
|
||||
<strong>
|
||||
Available Commands:
|
||||
</strong>
|
||||
<p
|
||||
class="available-commands"
|
||||
>
|
||||
[]
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="command-input input-group"
|
||||
>
|
||||
<span
|
||||
class="input-group-addon"
|
||||
>
|
||||
<i
|
||||
class="fa fa-fw fa-terminal"
|
||||
/>
|
||||
</span>
|
||||
<input
|
||||
class="form-control"
|
||||
placeholder="Enter command"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</DocumentFragment>
|
||||
`;
|
Loading…
Reference in New Issue
Block a user