Skip to content

Commit

Permalink
Bump minimist from 1.2.5 to 1.2.6 (#160)
Browse files Browse the repository at this point in the history
* Bump minimist from 1.2.5 to 1.2.6

Bumps [minimist](https:/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https:/substack/minimist/releases)
- [Commits](https:/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix tests

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fabasoad <[email protected]>
  • Loading branch information
dependabot[bot] and fabasoad authored Jun 4, 2022
1 parent 3f6f4ba commit 11fae29
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 53 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
"lint:ts": "eslint --ext ts --ext tsx src",
"lint": "yarn run lint:md && yarn run lint:ts",
"postinstall": "yarn husky install",
"prepare": "npm run snyk-protect",
"security:auth": "snyk auth",
"security:test": "snyk test",
"snyk-protect": "snyk protect",
"start:dev": "webpack serve --config webpack.dev.js",
"start:web": "nodemon --watch ./server -r dotenv/config server/app.js",
"test": "jest --config=jest.config.json --coverage"
"test": "NODE_OPTIONS=--no-experimental-fetch jest --config=jest.config.json --coverage"
},
"bugs": {
"url": "https:/fabasoad/business-card/issues",
Expand Down Expand Up @@ -84,7 +82,7 @@
"redux-mock-store": "1.5.4",
"redux-thunk": "2.4.1",
"sass-loader": "12.6.0",
"snyk": "1.860.0",
"snyk": "1.946.0",
"style-loader": "3.3.1",
"ts-jest": "27.1.3",
"ts-loader": "9.2.7",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@fabasoad" />
<meta property="og:title" content="Yevhen Fabizhevskyi" />
<meta property="og:description" content="IT Engineer | Master's degree in IT | Java, Python, CI/CD" />
<meta property="og:description" content="Senior Software Engineer | Team Lead | Master's degree in IT" />
<meta property="og:image" content="https://fabasoad.github.io/business-card/meta.png" />
<meta property="og:image:alt" content="Personal website" />
<meta property="og:url" content="https://fabasoad.github.io/business-card/" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/// <reference types="jest" />
import * as React from 'react'
import { shallow, ShallowWrapper } from 'enzyme'
import * as React from 'react'
import CertificateItem from '../../../components/Certificates/CertificateItem'

// TODO: Investigate
test.skip('should render CertificateItem correctly', () => {
test('should render CertificateItem correctly', () => {
const wrapper: ShallowWrapper = shallow(<CertificateItem
id="test-id"
issueDate={new Date('2020-01')}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should render CertificateItem correctly 1`] = `
<Component>
<Component>
<Component
<Card
body={false}
>
<CardHeader>
<CardImg
className="me-2"
src="test-issuer-img"
/>
test-issuer-name
</Component>
<div>
<p>
<a
</CardHeader>
<CardBody>
<CardText>
<CardLink
href="test-url"
rel="noopener noreferrer"
target="_blank"
>
test-title-key
</a>
</p>
</div>
<div>
</CardLink>
</CardText>
</CardBody>
<CardFooter>
<Connect(DateLocale)
month={1}
year={2020}
/>
</div>
</Component>
</CardFooter>
</Card>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ exports[`should render LanguageItem correctly 1`] = `
>
<LaguageLinkItem
code="jp"
text="JLPT N5"
url="https://drive.google.com/file/d/1wDeulFdf9-8DBa_k0F8tiRUtdlG7mh3L/view?usp=sharing"
text="JLPT N4"
url="https://drive.google.com/file/d/1QHRRPXiYuOKMmNPeqRf6GQQtyGdBkhQ5/view?usp=sharing"
/>
<LaguageLinkItem
code="gb"
Expand Down
10 changes: 4 additions & 6 deletions src/__tests__/components/Menu/LocaleDropDown.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/// <reference types="jest" />
import * as React from 'react'
import { shallow, ShallowWrapper } from 'enzyme'
import * as React from 'react'
import { LocaleDropDown } from '../../../components/Menu/LocaleDropDown'
import { Locale } from '../../../store/locale/types'

// TODO: Investigate
test.skip('should render LocaleDropDown correctly', () => {
test('should render LocaleDropDown correctly', () => {
const getLocalesExceptOfSpy = jest.fn(() => [{ code: 'gb', title: 'EN' }])
const wrapper: ShallowWrapper = shallow(<LocaleDropDown
getLocalesExceptOf={getLocalesExceptOfSpy}
Expand All @@ -17,16 +16,15 @@ test.skip('should render LocaleDropDown correctly', () => {
expect(getLocalesExceptOfSpy).toHaveBeenCalledWith('ru')
})

// TODO: Investigate
test.skip('should change locale correctly', () => {
test('should change locale correctly', () => {
const expectedLocale: Locale = { code: 'ru', title: 'RU' }
const startSetLocaleSpy = jest.fn()
const wrapper: ShallowWrapper = shallow(<LocaleDropDown
getLocalesExceptOf={() => [expectedLocale]}
locale={{ code: 'ru', title: 'RU' }}
startSetLocale={startSetLocaleSpy}
/>)
wrapper.find('*').at(2).simulate('click')
wrapper.find('DropdownItem').simulate('click')
expect(startSetLocaleSpy).toHaveBeenCalledTimes(1)
expect(startSetLocaleSpy).toHaveBeenCalledWith(expectedLocale)
})
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should render LocaleDropDown correctly 1`] = `
<Component>
<Component
<Dropdown
align="start"
autoClose={true}
navbar={false}
>
<DropdownToggle
bsPrefix="nav-link dropdown-toggle"
id="btnLocale"
variant={null}
Expand All @@ -11,11 +15,11 @@ exports[`should render LocaleDropDown correctly 1`] = `
code="ru"
/>
RU
</Component>
</DropdownToggle>
<DropdownMenu
flip={true}
>
<Component
<DropdownItem
bsPrefix="nav-link"
eventKey="gb"
key="gb"
Expand All @@ -25,7 +29,7 @@ exports[`should render LocaleDropDown correctly 1`] = `
code="gb"
/>
EN
</Component>
</DropdownItem>
</DropdownMenu>
</Component>
</Dropdown>
`;
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import MenuMain from './Menu/MenuMain'
import PortfolioMain from './Portfolio/PortfolioMain'
import Resume from './Resume'
import Skills from './Skills'
import StatsMain from './Stats/StatsMain';
import StatsMain from './Stats/StatsMain'

interface AppProps {
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Certificates/CertificateItem.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react'
import Card from 'react-bootstrap/Card'
import { Card } from 'react-bootstrap'
import { useTranslation } from 'react-i18next'
import DateLocale from '../controls/DateLocale'
import { Technology } from '../../scripts/technologies/types'
import { CertificateIssuer } from '../../scripts/certificates/types'
import { Technology } from '../../scripts/technologies/types'
import DateLocale from '../controls/DateLocale'

interface CertificateItemProps {
id: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/Languages/LanguagesMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function LanguagesMain() {
<div className="container">
<div className="row">
<div className="language-list col text-center">
<LanguageLinkItem code="jp" text="JLPT N5" url="https://drive.google.com/file/d/1wDeulFdf9-8DBa_k0F8tiRUtdlG7mh3L/view?usp=sharing" />
<LanguageLinkItem code="jp" text="JLPT N4" url="https://drive.google.com/file/d/1QHRRPXiYuOKMmNPeqRf6GQQtyGdBkhQ5/view?usp=sharing" />
<LanguageLinkItem code="gb" text="TOEIC 825" url="https://drive.google.com/file/d/1nzM9WQqR7PQpHKDiWvkRYtcNbnRW8-OB/view?usp=sharing" />
<LanguageTextItem code="ru" text={t('business-card-languages-native')} />
<LanguageTextItem code="ua" text={t('business-card-languages-native')} />
Expand Down
10 changes: 4 additions & 6 deletions src/components/Menu/LocaleDropDown.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import * as React from 'react'
import Dropdown from 'react-bootstrap/Dropdown'
import DropdownToggle from 'react-bootstrap/DropdownToggle'
import { Dropdown } from 'react-bootstrap'
import FlagIconFactory from 'react-flag-icon-css'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { ThunkDispatch } from 'redux-thunk'

import SupportedLocales from '../../scripts/SupportedLocales'
import { Locale, AppActions } from '../../store/locale/types'
import { AppState } from '../../store/configureStore'
import { startSetLocale } from '../../store/locale/actions'
import { AppActions, Locale } from '../../store/locale/types'

interface LocaleDropDownProps {
getLocalesExceptOf?: (code: string) => Locale[]
Expand All @@ -25,10 +23,10 @@ export function LocaleDropDown(props: Props) {
const FlagIcon = FlagIconFactory(React, { 'useCssModules': false })
return (
<Dropdown>
<DropdownToggle bsPrefix="nav-link dropdown-toggle" variant={null} id="btnLocale">
<Dropdown.Toggle bsPrefix="nav-link dropdown-toggle" variant={null} id="btnLocale">
<FlagIcon code={props.locale.code} />
{props.locale.title}
</DropdownToggle>
</Dropdown.Toggle>
<Dropdown.Menu>
{props.getLocalesExceptOf(props.locale.code).map((l) => {
return (
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6496,9 +6496,9 @@ [email protected]:
kind-of "^6.0.3"

minimist@^1.2.0, minimist@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
version "1.2.6"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==

minipass-collect@^1.0.2:
version "1.0.2"
Expand Down Expand Up @@ -8105,10 +8105,10 @@ smart-buffer@^4.2.0:
resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae"
integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==

snyk@1.860.0:
version "1.860.0"
resolved "https://registry.yarnpkg.com/snyk/-/snyk-1.860.0.tgz#3871938dd0e2b7679787677e98644210ed21a0f9"
integrity sha512-NrWLNDIrOs941AjfyAhydH4PxEcin5wY6WMxMLNrPDke81I7rAMGj54t4aI3rsfKYVVPx09v+DvhvdkXW3BZZQ==
snyk@1.946.0:
version "1.946.0"
resolved "https://registry.yarnpkg.com/snyk/-/snyk-1.946.0.tgz#d95afad5321f5bb15499c8f3fef5be17e0fd39ef"
integrity sha512-3XE1rk5qF1DOb5t5bQlOFDyp4x1V7HjpppH+RDVIqq7is0Hf9NTHeOpeNALplJjVVyEIfAzqiJThKupWDx5ptg==

sockjs@^0.3.21:
version "0.3.24"
Expand Down

0 comments on commit 11fae29

Please sign in to comment.