Skip to content

Commit

Permalink
Merge pull request #70 from EmmanuelDemey/master
Browse files Browse the repository at this point in the history
fix: solve unit test
  • Loading branch information
NicoLaval authored Aug 27, 2019
2 parents 6c01d84 + c1366dd commit bb5ec86
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/src/js/components/menu/referentiels/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ function MenuReferentiels() {
</li>
{process.env.REACT_APP_APPLICATIONS.split(',').map(appName => {
const app = appName.trim();
if (!app) {
return;
}
return (
<li key={`menu-ref-${app}`}>
<Link to={'/' + app}>
Expand Down
5 changes: 4 additions & 1 deletion packages/bauhaus-library/.babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"presets": [["@babel/preset-env", {}]],
"plugins": ["@babel/plugin-transform-react-jsx"]
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-react-jsx"
]
}
1 change: 1 addition & 0 deletions packages/bauhaus-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/preset-env": "^7.5.5",
"@storybook/addon-actions": "5.1.11",
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,14 @@
"@babel/helper-create-class-features-plugin" "^7.5.5"
"@babel/helper-plugin-utils" "^7.0.0"

"@babel/plugin-proposal-class-properties@^7.5.5":
version "7.5.5"
resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.5.5.tgz#a974cfae1e37c3110e71f3c6a2e48b8e71958cd4"
integrity sha512-AF79FsnWFxjlaosgdi421vmYG6/jg79bVD0dpD44QdgobzHKuLZ6S3vl8la9qIeSwGi8i1fS0O1mfuDAAdo1/A==
dependencies:
"@babel/helper-create-class-features-plugin" "^7.5.5"
"@babel/helper-plugin-utils" "^7.0.0"

"@babel/[email protected]":
version "7.4.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.4.0.tgz#8e1bfd83efa54a5f662033afcc2b8e701f4bb3a9"
Expand Down

0 comments on commit bb5ec86

Please sign in to comment.