Skip to content

Commit

Permalink
plugins: fastboot: npm run lint
Browse files Browse the repository at this point in the history
Change-Id: I1d73a4f70a60f0a71bc4e9ffd819c27edc1c1fea
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
  • Loading branch information
amartinz committed Apr 26, 2022
1 parent 8e4335a commit 7b14b3e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/core/plugins/fastboot/plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,16 @@ describe("fastboot plugin", () => {
describe("update()", () => {
it("should update", () => {
jest.spyOn(fastbootPlugin.fastboot, "update").mockResolvedValue();
return fastbootPlugin.action__update({group: "group", file: "image"}).then(() => {
expect(fastbootPlugin.fastboot.update).toHaveBeenCalledTimes(1);
expect(fastbootPlugin.fastboot.update).toHaveBeenCalledWith(expect.stringMatching(/.*group.image/), undefined);
fastbootPlugin.fastboot.update.mockRestore();
});
return fastbootPlugin
.action__update({ group: "group", file: "image" })
.then(() => {
expect(fastbootPlugin.fastboot.update).toHaveBeenCalledTimes(1);
expect(fastbootPlugin.fastboot.update).toHaveBeenCalledWith(
expect.stringMatching(/.*group.image/),
undefined
);
fastbootPlugin.fastboot.update.mockRestore();
});
});
});
describe("oem_unlock()", () => {
Expand Down

0 comments on commit 7b14b3e

Please sign in to comment.