orc-shared 1.7.0-dev.4 → 1.7.0-dev.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.
@@ -142,7 +142,7 @@ var viewStateReducer = function viewStateReducer(state, action) {
142
142
  }
143
143
  case _scopes.APPLICATION_SCOPE_HAS_CHANGED:
144
144
  {
145
- return state.remove("edit");
145
+ return initialState;
146
146
  }
147
147
  default:
148
148
  return state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orc-shared",
3
- "version": "1.7.0-dev.4",
3
+ "version": "1.7.0-dev.5",
4
4
  "description": "Shared code for Orckestra applications",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
@@ -63,7 +63,7 @@
63
63
  "prettier --write"
64
64
  ],
65
65
  "*.js": [
66
- "eslint"
66
+ "eslint --max-warnings=0"
67
67
  ],
68
68
  "./src/translations/*.json": [
69
69
  "npx orc-scripts validateTranslations"
@@ -100,7 +100,7 @@ const viewStateReducer = (state = initialState, action) => {
100
100
  return state;
101
101
  }
102
102
  case APPLICATION_SCOPE_HAS_CHANGED: {
103
- return state.remove("edit");
103
+ return initialState;
104
104
  }
105
105
  default:
106
106
  return state;
@@ -522,14 +522,7 @@ describe("View state reducer", () => {
522
522
  });
523
523
  const action = applicationScopeHasChanged("oldScope", "newScope");
524
524
  const newState = viewReducer(oldState, action);
525
- return expect(newState, "not to be", oldState).and(
526
- "to exhaustively satisfy",
527
- Immutable.fromJS({
528
- anotherKey: {
529
- id: "ThisValueShouldRemain",
530
- },
531
- }),
532
- );
525
+ return expect(newState, "not to be", oldState).and("to exhaustively satisfy", Immutable.fromJS({}));
533
526
  });
534
527
 
535
528
  it("Removes edit model field correctly", () => {