mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-13 21:01:11 +08:00
24 lines
696 B
TypeScript
24 lines
696 B
TypeScript
import { TestBed } from "@angular/core/testing";
|
|
|
|
import { FlightRecorder } from "@bitwarden/logging";
|
|
|
|
import { FlightRecorderService } from "./index";
|
|
|
|
describe("FlightRecorderService", () => {
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({});
|
|
});
|
|
|
|
it("is injectable via Angular DI", () => {
|
|
expect(TestBed.inject(FlightRecorderService)).toBeInstanceOf(FlightRecorderService);
|
|
});
|
|
|
|
it("is a singleton at the root injector", () => {
|
|
expect(TestBed.inject(FlightRecorderService)).toBe(TestBed.inject(FlightRecorderService));
|
|
});
|
|
|
|
it("inherits from FlightRecorder", () => {
|
|
expect(TestBed.inject(FlightRecorderService)).toBeInstanceOf(FlightRecorder);
|
|
});
|
|
});
|