Skip to content

Commit

Permalink
Bumped jest and fixed the feature storage.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarl committed Mar 26, 2019
1 parent 019ab0f commit 0b1a1f4
Show file tree
Hide file tree
Showing 4 changed files with 1,165 additions and 675 deletions.
7 changes: 6 additions & 1 deletion client/app/scripts/utils/feature-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ const getKey = key => `${STORAGE_KEY_PREFIX}${key}`;
* @return {Boolean} True if feature is enabled
*/
export function featureIsEnabled(feature) {
return storageGet(getKey(feature));
let enabled = storageGet(getKey(feature));
if (typeof enabled === 'string') {
// Convert back to boolean if stored as a string.
enabled = JSON.parse(enabled);
}
return enabled;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@fortawesome/fontawesome-free": "^5.5.0",
"autoprefixer": "7.1.5",
"babel-eslint": "8.2.1",
"babel-jest": "^23.6.0",
"babel-jest": "24.5.0",
"babel-loader": "^8.0.0",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
Expand All @@ -75,8 +75,8 @@
"html-webpack-plugin": "3.2.0",
"http-proxy": "1.16.2",
"http-proxy-rules": "1.1.1",
"jest": "21.2.1",
"jest-cli": "21.2.1",
"jest": "24.5.0",
"jest-cli": "24.5.0",
"json-loader": "0.5.7",
"mockdate": "2.0.2",
"node-sass": "^4.6.0",
Expand Down
6 changes: 0 additions & 6 deletions client/webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ module.exports = {
new webpack.DefinePlugin(GLOBALS),
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
new webpack.IgnorePlugin(/.*\.map$/, /xterm\/lib\/addons/),
// new webpack.optimize.UglifyJsPlugin({
// sourceMap: false,
// compress: {
// warnings: false
// }
// }),
new HtmlWebpackPlugin({
chunks: ['vendors', 'terminal-app'],
filename: 'terminal.html',
Expand Down
Loading

0 comments on commit 0b1a1f4

Please sign in to comment.