fix(scrcpy): options.setListDisplays not work for some versions

fixes #567
This commit is contained in:
Simon Chan 2023-07-15 12:46:37 +08:00
parent 7056feb3b1
commit b3db76b96a
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
10 changed files with 126 additions and 2 deletions

View file

@ -22,4 +22,12 @@ describe("ScrcpyOptions1_16", () => {
]);
});
});
describe("setListDisplays", () => {
it("should set `display` to `-1`", () => {
const options = new ScrcpyOptions1_16({});
options.setListDisplays();
expect(options.value.displayId).toBe(-1);
});
});
});