Skip to content

Commit 53574bb

Browse files
Update/fix unit tests
1 parent ea3f4bf commit 53574bb

119 files changed

Lines changed: 1451 additions & 1484 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.

app/components/chart/daily.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,4 +715,4 @@ class Daily extends Component {
715715
};
716716
}
717717

718-
export default withTranslation(null, { withRef: true })(Daily);
718+
export default withTranslation()(Daily);

app/components/clinic/BgRangeSummary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const BgRangeSummary = React.memo(props => {
5959
<Box sx={wrapperStyle} {...themeProps}>
6060
<Flex className="range-summary-bars" sx={{ width: flexWidth, height: '18px', justifyContent: 'center' }} {...bindHover(popupState)}>
6161
{map(data, (value, key) => (
62-
<Box className={`range-summary-bars-${key}`} key={key} sx={{ bg: `bg.${key}`, width: `${value * 100}%` }}/>
62+
<Box className={`range-summary-bars-${key}`} key={key} data-width={`${value * 100}%`} sx={{ bg: `bg.${key}`, width: `${value * 100}%` }}/>
6363
))}
6464
</Flex>
6565

app/components/clinic/ClinicWorkspaceHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export const ClinicWorkspaceHeader = (props) => {
9292
<Box sx={{ flexShrink: 0 }}>
9393
<Caption sx={{ color: 'grays.4' }}>{t('Clinic Share Code')}</Caption>
9494
<Flex
95-
alignContent="center"
9695
sx={{
96+
alignContent: 'center',
9797
button: {
9898
border: 'none',
9999
color: 'text.primary',

app/components/clinic/PatientForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export const PatientForm = (props) => {
304304
<Box mb={4}>
305305
<TextInput
306306
{...getCommonFormikFieldProps('mrn', formikContext)}
307-
label={mrnSettings?.required ? t('MRN') : t('MRN (optional)')}
307+
label={mrnSettings?.required ? t('MRN') : t('MRN (optional)')}
308308
placeholder={t('MRN')}
309309
variant="condensed"
310310
sx={{ width: '100%' }}

app/components/elements/.eslintrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
"rules": {
66
"arrow-parens": 0,
77
"class-methods-use-this": 0,
8-
"comma-dangle": ["error", "always-multiline", {
9-
"functions": "ignore"
8+
"comma-dangle": ["error", {
9+
"arrays": "only-multiline",
10+
"objects": "only-multiline",
11+
"imports": "only-multiline",
12+
"exports": "only-multiline",
13+
"functions": "never"
1014
}],
1115
"function-paren-newline": 0,
1216
"implicit-arrow-linebreak": 0,

0 commit comments

Comments
 (0)