bukazu-portal-react 3.1.4 → 3.1.5

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/CHANGELOG.MD CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ##
4
+ - Allow persons to be zero if hous max is zero
5
+
3
6
  ## 3.1.0
4
7
  - Added review page
5
8
  - Updated general styling of cards
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bukazu-portal-react",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "A package for loading the calendar and search module from bukazu loading into a react app.",
5
5
  "repository": "https://github.com/BUKAZU/React-portal",
6
6
  "scripts": {
@@ -28,10 +28,10 @@
28
28
  "@vitejs/plugin-react": "^3.0.1",
29
29
  "autoprefixer": "^10.4.13",
30
30
  "chalk": "1.1.3",
31
- "cypress": "^12.4.1",
31
+ "cypress": "^13.1.0",
32
32
  "dotenv": "4.0.0",
33
33
  "dotenv-expand": "4.2.0",
34
- "eslint": "^7.28.0",
34
+ "eslint": "^8.49.0",
35
35
  "eslint-plugin-jsx-a11y": "^6.4.1",
36
36
  "eslint-plugin-prettier": "^3.4.0",
37
37
  "eslint-plugin-react": "^7.24.0",
@@ -42,7 +42,7 @@ export function validateForm(values, house, bookingFields): [] {
42
42
  }
43
43
  }
44
44
 
45
- if (values.adults < 1) {
45
+ if (values.adults < 1 && persons > 0) {
46
46
  errors.adults = <FormattedMessage id="at_least_1_adult" />;
47
47
  }
48
48
  if (Number(values.discount) > 0 && !values.discount_reason) {
@@ -7,9 +7,7 @@ describe('export numbered array', () => {
7
7
  });
8
8
 
9
9
  describe('export price array', () => {
10
- test('Small array', () => {
10
+ test('Small array', () => {
11
11
  expect(createPriceArray(400)).toStrictEqual([0, 100, 200, 300, 400]);
12
12
  });
13
-
14
-
15
13
  });