@pie-lib/scoring-config 4.1.0-next.4 → 4.1.1-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/scoring-config",
3
- "version": "4.1.0-next.4",
3
+ "version": "4.1.1-next.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "src/index.jsx",
@@ -16,7 +16,7 @@
16
16
  "@mui/icons-material": "^7.3.4",
17
17
  "@mui/material": "^7.3.4",
18
18
  "debug": "^4.1.1",
19
- "lodash": "^4.17.11",
19
+ "lodash-es": "^4.17.23",
20
20
  "prop-types": "^15.7.2"
21
21
  },
22
22
  "peerDependencies": {
@@ -26,5 +26,5 @@
26
26
  "react": "^18.2.0",
27
27
  "react-dom": "^18.2.0"
28
28
  },
29
- "gitHead": "d2c8178decbc97a9b3deaf6739f8093209bda80e"
29
+ "gitHead": "87d7d9ee63abeb5eff95f888cc2b80683c81ea13"
30
30
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import userEvent from '@testing-library/user-event';
4
- import { ThemeProvider, createTheme } from '@mui/material/styles';
4
+ import { createTheme, ThemeProvider } from '@mui/material/styles';
5
5
  import { PartialScoringConfig } from '../index';
6
6
 
7
7
  describe('PartialScoringConfig', () => {
@@ -19,7 +19,7 @@ describe('PartialScoringConfig', () => {
19
19
  ...render(
20
20
  <ThemeProvider theme={theme}>
21
21
  <PartialScoringConfig {...defaultProps} />
22
- </ThemeProvider>
22
+ </ThemeProvider>,
23
23
  ),
24
24
  onChange: defaultProps.onChange,
25
25
  };
@@ -30,7 +30,9 @@ describe('PartialScoringConfig', () => {
30
30
  renderComponent();
31
31
 
32
32
  expect(screen.getByText('Partial Scoring Rules')).toBeInTheDocument();
33
- expect(screen.getByText('Each correct response is worth 1/X where X is the number of correct answer selections.')).toBeInTheDocument();
33
+ expect(
34
+ screen.getByText('Each correct response is worth 1/X where X is the number of correct answer selections.'),
35
+ ).toBeInTheDocument();
34
36
  });
35
37
 
36
38
  it('renders checkbox', () => {
@@ -46,7 +48,9 @@ describe('PartialScoringConfig', () => {
46
48
  renderComponent({ label: customLabel });
47
49
 
48
50
  expect(screen.getByText(customLabel)).toBeInTheDocument();
49
- expect(screen.queryByText('Each correct response is worth 1/X where X is the number of correct answer selections.')).not.toBeInTheDocument();
51
+ expect(
52
+ screen.queryByText('Each correct response is worth 1/X where X is the number of correct answer selections.'),
53
+ ).not.toBeInTheDocument();
50
54
  });
51
55
 
52
56
  it('renders checkbox as checked when partialScoring is true', () => {