storj/web/satellite/tests/unit/mock/api/abtesting.ts
Wilfred Asomani 4edef9e05c web/satellite: add AB test for new upgrade banner
This change adds AB testing for a new upgrade banner and sends a hit event when "Upgrade" is clicked.

Change-Id: Ie463e224af5b0cb74a601b68eedb2b34f9089fd7
2022-11-01 16:39:52 +00:00

19 lines
485 B
TypeScript

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.
import { ABHitAction, ABTestApi, ABTestValues } from '@/types/abtesting';
/**
* ABHttpApi is a console AB testing API.
* Exposes all ab-testing related functionality
*/
export class ABMockApi implements ABTestApi {
public async fetchABTestValues(): Promise<ABTestValues> {
return new ABTestValues();
}
public async sendHit(_: ABHitAction): Promise<void> {
return;
}
}