scottohara/loot

View on GitHub
src/mocks/authentication/providers/authenticated.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import type { Mock } from "~/mocks/types";

export default class AuthenticatedMockProvider implements Mock<boolean> {
    public constructor(private readonly authenticated = true) {}

    public $get(): boolean {
        // Return the mock authenticated status object
        return this.authenticated;
    }
}

AuthenticatedMockProvider.$inject = [];