tui: add reject message support to permission dialogs for better user feedback
This commit is contained in:
parent
2b66b31d96
commit
47c670aea9
8 changed files with 196 additions and 79 deletions
|
|
@ -451,7 +451,7 @@ test("ask - throws RejectedError when action is deny", async () => {
|
|||
always: [],
|
||||
ruleset: [{ permission: "bash", pattern: "*", action: "deny" }],
|
||||
}),
|
||||
).rejects.toBeInstanceOf(PermissionNext.AutoRejectedError)
|
||||
).rejects.toBeInstanceOf(PermissionNext.DeniedError)
|
||||
},
|
||||
})
|
||||
})
|
||||
|
|
@ -628,7 +628,7 @@ test("ask - checks all patterns and stops on first deny", async () => {
|
|||
{ permission: "bash", pattern: "rm *", action: "deny" },
|
||||
],
|
||||
}),
|
||||
).rejects.toBeInstanceOf(PermissionNext.AutoRejectedError)
|
||||
).rejects.toBeInstanceOf(PermissionNext.DeniedError)
|
||||
},
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue