piral-containers 1.8.0-beta.7667 → 1.8.0-beta.7668

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": "piral-containers",
3
- "version": "1.8.0-beta.7667",
3
+ "version": "1.8.0-beta.7668",
4
4
  "description": "Plugin for creating a pilet state container in Piral.",
5
5
  "keywords": [
6
6
  "piral",
@@ -51,8 +51,8 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^18.0.0",
54
- "piral-core": "1.8.0-beta.7667",
54
+ "piral-core": "1.8.0-beta.7668",
55
55
  "react": "^18.0.0"
56
56
  },
57
- "gitHead": "658a8503fdf62c503e4d7cbe86cb3f6da0b2d76d"
57
+ "gitHead": "1b32d52d4d57363bed8af9105dd41a0635075721"
58
58
  }
@@ -33,7 +33,7 @@ describe('Piral-Containers actions module', () => {
33
33
  bar: 'qxz',
34
34
  };
35
35
  createState(context, 'foo', initialData);
36
- const state: any = (context.state.getState());
36
+ const state: any = context.state.getState();
37
37
  expect(state.containers.foo).toBe(initialData);
38
38
  });
39
39
 
@@ -44,7 +44,7 @@ describe('Piral-Containers actions module', () => {
44
44
  };
45
45
  createState(context, 'foo', initialData);
46
46
  destroyState(context, 'foo');
47
- const state: any = (context.state.getState());
47
+ const state: any = context.state.getState();
48
48
  expect(state.containers.foo).toBeUndefined();
49
49
  });
50
50
 
@@ -58,7 +58,7 @@ describe('Piral-Containers actions module', () => {
58
58
  };
59
59
  createState(context, 'foo', initialData);
60
60
  replaceState(context, 'foo', (state) => updatedData);
61
- const state: any = (context.state.getState());
61
+ const state: any = context.state.getState();
62
62
  expect(state.containers.foo).toEqual({
63
63
  ...initialData,
64
64
  ...updatedData,
@@ -75,7 +75,7 @@ describe('Piral-Containers actions module', () => {
75
75
  };
76
76
  createState(context, 'foo', initialData);
77
77
  replaceState(context, 'foo', (state) => updatedData);
78
- const state: any = (context.state.getState());
78
+ const state: any = context.state.getState();
79
79
  expect(state.containers.foo).toEqual({
80
80
  ...initialData,
81
81
  ...updatedData,
@@ -89,7 +89,7 @@ describe('Piral-Containers actions module', () => {
89
89
  };
90
90
  createState(context, 'foo', initialData);
91
91
  replaceState(context, 'foo', (state) => state);
92
- const state: any = (context.state.getState());
92
+ const state: any = context.state.getState();
93
93
  expect(state.containers.foo).toEqual(initialData);
94
94
  });
95
95
  });
@@ -52,7 +52,11 @@ describe('Piral-Containers create module', () => {
52
52
  },
53
53
  });
54
54
 
55
- const MyComponent = ({ state, actions }) => <button role="button" onClick={actions.increment}>{state.count}</button>;
55
+ const MyComponent = ({ state, actions }) => (
56
+ <button role="button" onClick={actions.increment}>
57
+ {state.count}
58
+ </button>
59
+ );
56
60
  MyComponent.displayName = 'MyComponent';
57
61
  const ConnectedComponent = connect(MyComponent);
58
62
  const node = render(
@@ -60,7 +64,7 @@ describe('Piral-Containers create module', () => {
60
64
  <ConnectedComponent />
61
65
  </StateContext.Provider>,
62
66
  );
63
- const button = node.getByRole("button");
67
+ const button = node.getByRole('button');
64
68
  expect(button.textContent).toEqual('0');
65
69
  fireEvent.click(button);
66
70
  expect(button.textContent).toEqual('1');