Remove unused method
This commit is contained in:
@ -38,5 +38,16 @@ describe("OnePassword", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("lock", () => {});
|
||||
describe("lock", () => {
|
||||
it("locks", async () => {
|
||||
const instance = new OnePassword({ path: freddy });
|
||||
const vault = await instance.getProfile("default");
|
||||
vault.unlock("freddy");
|
||||
expect(vault.isLocked).to.be.false;
|
||||
|
||||
vault.lock();
|
||||
expect(vault.isLocked).to.be.true;
|
||||
expect(() => vault.overviews.values()).to.throw();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user