1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-20 11:24:07 +00:00

minor wording changes

This commit is contained in:
jng
2025-08-15 11:58:42 -04:00
parent b6265cf6e4
commit 1e058bb0d9
2 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ describe("AtRiskPasswordCalloutService", () => {
const mockTaskService = { pendingTasks$: jest.fn() };
const mockCipherService = { cipherViews$: jest.fn() };
const mockStateProvider = { getUser: jest.fn().mockReturnValue(fakeUserState()) };
const userId: UserId = "user-123" as UserId;
const userId: UserId = "user1" as UserId;
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
@@ -60,7 +60,7 @@ describe("AtRiskPasswordCalloutService", () => {
});
describe("pendingTasks$", () => {
it("filters tasks to only UpdateAtRiskCredential with a non-deleted cipher", async () => {
it("filters tasks to only items with UpdateAtRiskCredential types and not deleted cipher", async () => {
const tasks: SecurityTask[] = [
{ id: "t1", cipherId: "c1", type: SecurityTaskType.UpdateAtRiskCredential } as any,
{ id: "t2", cipherId: "c2", type: null } as any,
@@ -83,7 +83,7 @@ describe("AtRiskPasswordCalloutService", () => {
});
describe("atRiskPasswordState", () => {
it("calls stateProvider.getUser and returns its value", () => {
it("calls stateProvider.getUser with proper values", () => {
service.atRiskPasswordState(userId);
expect(mockStateProvider.getUser).toHaveBeenCalledWith(userId, AT_RISK_PASSWORD_CALLOUT_KEY);
});