Skip to content

Commit

Permalink
Fix #2536: Cannot destructure property 'verify_recovery'
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Mar 25, 2022
1 parent d371d44 commit a3c0fe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/plugins/systemimage/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SystemimagePlugin extends Plugin {
* systemimage:install action
* @returns {Promise<Array<Object>>}
*/
action__install({ verify_recovery } = {}) {
action__install(arg) {
return api
.getImages(
this.props.settings.channel,
Expand All @@ -56,7 +56,7 @@ class SystemimagePlugin extends Plugin {
{
"adb:wait": null
},
...(verify_recovery
...(arg?.verify_recovery
? [
{
"adb:assert_prop": {
Expand Down
2 changes: 1 addition & 1 deletion src/core/plugins/systemimage/plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("systemimage plugin", () => {
describe("actions", () => {
describe("install", () => {
it("should create install actions", () =>
systemimage.action__install().then(r => {
systemimage.action__install(null).then(r => {
expect(r).toHaveLength(1);
expect(r[0].actions).toHaveLength(5);
expect(r[0].actions).toContainEqual({
Expand Down

0 comments on commit a3c0fe5

Please sign in to comment.