fix(deps): update dependency mobx to v6.1.0 (#2683)

* fix(deps): update dependency mobx to v6.1.0

* fix(tests): fix mobx tests

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
This commit is contained in:
renovate[bot]
2021-01-27 14:41:01 +00:00
committed by GitHub
parent b13b258fc6
commit bf97f9255a
3 changed files with 4 additions and 6 deletions

6
ui/package-lock.json generated
View File

@@ -14217,9 +14217,9 @@
"dev": true
},
"mobx": {
"version": "6.0.5",
"resolved": "https://registry.npmjs.org/mobx/-/mobx-6.0.5.tgz",
"integrity": "sha512-Q3/GiSj/QyazDn1n44PjdiMlokCE6gVs85BnFR0xCJmkF2d34k/ZnWAEG7wGbnJYEi+0f5CdvzDquBiKeo56bA=="
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/mobx/-/mobx-6.1.0.tgz",
"integrity": "sha512-AU3z1oIep0wu7BdFFjd/0e0K1SGVcXi0TX8GPKKCkdnQEjJ3w/PgOct63Yk7V0/di/bnxb8+UehWC/Lld+MmeA=="
},
"mobx-react-lite": {
"version": "3.2.0",

View File

@@ -47,7 +47,7 @@
"lodash.merge": "4.6.2",
"lodash.throttle": "4.1.1",
"lodash.uniqueid": "4.0.1",
"mobx": "6.0.5",
"mobx": "6.1.0",
"mobx-react-lite": "3.2.0",
"mobx-stored": "1.1.0",
"prettier": "2.2.1",

View File

@@ -188,10 +188,8 @@ describe("<ManagedSilence />", () => {
const button = tree.find(".btn-primary");
expect(button.text()).toBe("Edit");
const fillSpy = jest.spyOn(silenceFormStore.data, "fillFormFromSilence");
button.simulate("click");
expect(silenceFormStore.data.silenceID).toBe(silence.id);
expect(fillSpy).toHaveBeenCalled();
});
it("call onDidUpdate if passed", () => {