mirror of
https://github.com/bitwarden/browser
synced 2026-02-18 02:19:18 +00:00
On Web and Desktop, show back button on `NewDeviceVerificationComponent` (route `/device-verification`). Do not show it on Extension, because Extension already has a back button in the header.
22 lines
588 B
TypeScript
22 lines
588 B
TypeScript
import { DefaultNewDeviceVerificationComponentService } from "./default-new-device-verification-component.service";
|
|
|
|
describe("DefaultNewDeviceVerificationComponentService", () => {
|
|
let sut: DefaultNewDeviceVerificationComponentService;
|
|
|
|
beforeEach(() => {
|
|
sut = new DefaultNewDeviceVerificationComponentService();
|
|
});
|
|
|
|
it("should instantiate the service", () => {
|
|
expect(sut).not.toBeFalsy();
|
|
});
|
|
|
|
describe("showBackButton()", () => {
|
|
it("should return true", () => {
|
|
const result = sut.showBackButton();
|
|
|
|
expect(result).toBe(true);
|
|
});
|
|
});
|
|
});
|