diff --git a/frontend/package-lock.json b/frontend/package-lock.json index f33af97..2bb9dec 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -21,7 +21,7 @@ "react": "17.0.2", "react-dom": "17.0.2", "save-dev": "0.0.1-security", - "styled-components": "5.3.10" + "styled-components": "^5.3.11" }, "devDependencies": { "@babel/core": "7.21.3", @@ -14363,9 +14363,9 @@ } }, "node_modules/styled-components": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.10.tgz", - "integrity": "sha512-3kSzSBN0TiCnGJM04UwO1HklIQQSXW7rCARUk+VyMR7clz8XVlA3jijtf5ypqoDIdNMKx3la4VvaPFR855SFcg==", + "version": "5.3.11", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.11.tgz", + "integrity": "sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==", "dependencies": { "@babel/helper-module-imports": "^7.0.0", "@babel/traverse": "^7.4.5", @@ -26346,9 +26346,9 @@ "dev": true }, "styled-components": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.10.tgz", - "integrity": "sha512-3kSzSBN0TiCnGJM04UwO1HklIQQSXW7rCARUk+VyMR7clz8XVlA3jijtf5ypqoDIdNMKx3la4VvaPFR855SFcg==", + "version": "5.3.11", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.11.tgz", + "integrity": "sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==", "requires": { "@babel/helper-module-imports": "^7.0.0", "@babel/traverse": "^7.4.5", diff --git a/frontend/package.json b/frontend/package.json index 8bde3ee..3a24cc2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,6 +21,7 @@ "lint": "./node_modules/.bin/eslint --ext .js,.jsx src test", "test": "npm run build:prod && JEST_ENV=jest-environment-puppeteer ./node_modules/.bin/jest --testPathPattern=page.spec.js", "unit": "JEST_ENV=jsdom ./node_modules/.bin/jest --testPathPattern=test.js --coverage", + "unit:update-snapshots": "JEST_ENV=jsdom ./node_modules/.bin/jest --testPathPattern=test.js --coverage --updateSnapshot", "prepare": "node update_nvmrc.js" }, "devDependencies": { @@ -72,7 +73,7 @@ "react": "17.0.2", "react-dom": "17.0.2", "save-dev": "0.0.1-security", - "styled-components": "5.3.10" + "styled-components": "5.3.11" }, "snyk": true } diff --git a/frontend/src/component/__snapshots__/Header.test.jsx.snap b/frontend/src/component/__snapshots__/Header.test.jsx.snap index 7cbab23..0882d03 100644 --- a/frontend/src/component/__snapshots__/Header.test.jsx.snap +++ b/frontend/src/component/__snapshots__/Header.test.jsx.snap @@ -3,26 +3,26 @@ exports[`Header should be rendered 1`] = `

Tietojeni käyttö

Tällä sivulla voit tarkastella ja hallinnoida antamiasi käyttölupia tietoihisi. Lisäksi näet mitkä toimijat, esim. viranomaiset, ovat käyttäneet tietojasi. *

Onni Oskari Oppija s. 1.2.1980 @@ -30,12 +30,12 @@ exports[`Header should be rendered 1`] = `

Tarkasteltava henkilö: