mirror of
https://github.com/bitwarden/browser
synced 2026-02-24 16:43:27 +00:00
Revert "Adds a function to organization.ts to get the icon string. Updates how the icon string is retrieved."
This reverts commit d54507bc2a.
This commit is contained in:
@@ -294,54 +294,4 @@ describe("Organization", () => {
|
||||
expect(organization.canEnableAutoConfirmPolicy).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("getIconString", () => {
|
||||
it("should return bwi-family when productTierType is free", () => {
|
||||
data.productTierType = ProductTierType.Free;
|
||||
|
||||
const organization = new Organization(data);
|
||||
|
||||
expect(organization.getIconString()).toBe("bwi-family");
|
||||
});
|
||||
|
||||
it("should return bwi-family when productTierType is families", () => {
|
||||
data.productTierType = ProductTierType.Families;
|
||||
|
||||
const organization = new Organization(data);
|
||||
|
||||
expect(organization.getIconString()).toBe("bwi-family");
|
||||
});
|
||||
|
||||
it("should return bwi-business when productTierType is teams", () => {
|
||||
data.productTierType = ProductTierType.Teams;
|
||||
|
||||
const organization = new Organization(data);
|
||||
|
||||
expect(organization.getIconString()).toBe("bwi-business");
|
||||
});
|
||||
|
||||
it("should return bwi-business when productTierType is enterprise", () => {
|
||||
data.productTierType = ProductTierType.Enterprise;
|
||||
|
||||
const organization = new Organization(data);
|
||||
|
||||
expect(organization.getIconString()).toBe("bwi-business");
|
||||
});
|
||||
|
||||
it("should return bwi-business when productTierType is teamsStarter", () => {
|
||||
data.productTierType = ProductTierType.TeamsStarter;
|
||||
|
||||
const organization = new Organization(data);
|
||||
|
||||
expect(organization.getIconString()).toBe("bwi-business");
|
||||
});
|
||||
|
||||
it("should return bwi-business when productTierType is null", () => {
|
||||
data.productTierType = null;
|
||||
|
||||
const organization = new Organization(data);
|
||||
|
||||
expect(organization.getIconString()).toBe("bwi-business");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -415,15 +415,4 @@ export class Organization {
|
||||
get canUseAccessIntelligence() {
|
||||
return this.productTierType === ProductTierType.Enterprise;
|
||||
}
|
||||
|
||||
getIconString(): string {
|
||||
if (
|
||||
this?.productTierType === ProductTierType.Free ||
|
||||
this?.productTierType === ProductTierType.Families
|
||||
) {
|
||||
return "bwi-family";
|
||||
} else {
|
||||
return "bwi-business";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user