DeFiCh/wallet

View on GitHub
mobile-app/app/contexts/__mocks__/FeatureFlagContext.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { EnvironmentNetwork } from "@waveshq/walletkit-core";
import { FeatureFlagContextI } from "../FeatureFlagContext";

export function useFeatureFlagContext(): FeatureFlagContextI {
  return {
    hasBetaFeatures: false,
    featureFlags: [
      {
        id: "future_swap",
        name: "Future swap",
        stage: "beta",
        version: ">=0.12.0",
        description: "Browse loan tokens provided by DeFiChain",
        networks: [
          EnvironmentNetwork.LocalPlayground,
          EnvironmentNetwork.RemotePlayground,
        ],
        platforms: ["ios", "android", "web"],
        app: ["MOBILE_LW"],
      },
    ],
    enabledFeatures: ["future_swap", "dfi_loan_payment"],
    updateEnabledFeatures: jest.fn(),
    isFeatureAvailable: jest.fn(),
    isBetaFeature: jest.fn(),
  };
}