mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
Return error code when any tsc typecheck fails (#5459)
* Return error code when any tsc typecheck fails * Try with bash `sh ./scripts/test-types.s` resulted in errors missing `[[`, which is a bash builtin. It's possible the ubuntu runner is using some other shell. * Fix spec type errors * Switch to node for Windows compatibility
This commit is contained in:
@@ -62,8 +62,9 @@ describe("ImportService", () => {
|
||||
});
|
||||
|
||||
it("has the promptForPassword_callback set", async () => {
|
||||
expect(importer.promptForPassword_callback).not.toBeNull();
|
||||
expect(await importer.promptForPassword_callback()).toEqual(password);
|
||||
// Cast to any to access private property. Note: assumes instance of BitwardenPasswordProtectedImporter
|
||||
expect((importer as any).promptForPassword_callback).not.toBeNull();
|
||||
expect(await (importer as any).promptForPassword_callback()).toEqual(password);
|
||||
});
|
||||
|
||||
it("has the appropriate organization Id", () => {
|
||||
|
||||
Reference in New Issue
Block a user