Fix failing unit tests in browser (#5688)

* format js files using prettier

Used the following command to format the files
prettier --write "browser/app/js/**/*.js"

* fix failing unit tests in browser
This commit is contained in:
Kanagaraj M
2018-03-23 00:55:56 +05:30
committed by Harshavardhana
parent cb3818be27
commit c0e45f9098
95 changed files with 839 additions and 890 deletions

View File

@@ -24,7 +24,7 @@ import * as alertActions from "../alert/actions"
import {
SHARE_OBJECT_EXPIRY_DAYS,
SHARE_OBJECT_EXPIRY_HOURS,
SHARE_OBJECT_EXPIRY_MINUTES,
SHARE_OBJECT_EXPIRY_MINUTES
} from "../constants"
export class ShareObjectModal extends React.Component {
@@ -34,22 +34,22 @@ export class ShareObjectModal extends React.Component {
expiry: {
days: SHARE_OBJECT_EXPIRY_DAYS,
hours: SHARE_OBJECT_EXPIRY_HOURS,
minutes: SHARE_OBJECT_EXPIRY_MINUTES,
},
minutes: SHARE_OBJECT_EXPIRY_MINUTES
}
}
this.expiryRange = {
days: {
min: 0,
max: 7,
max: 7
},
hours: {
min: 0,
max: 23,
max: 23
},
minutes: {
min: 0,
max: 59,
},
max: 59
}
}
}
@@ -75,7 +75,7 @@ export class ShareObjectModal extends React.Component {
}
this.setState({
expiry,
expiry
})
const { shareObjectDetails: { object }, shareObject } = this.props
@@ -207,7 +207,7 @@ export class ShareObjectModal extends React.Component {
const mapStateToProps = (state, ownProps) => {
return {
shareObjectDetails: state.objects.shareObject,
shareObjectDetails: state.objects.shareObject
}
}
@@ -220,9 +220,9 @@ const mapDispatchToProps = dispatch => {
dispatch(
alertActions.set({
type: "success",
message: message,
}),
),
message: message
})
)
}
}