4edef9e05c
This change adds AB testing for a new upgrade banner and sends a hit event when "Upgrade" is clicked. Change-Id: Ie463e224af5b0cb74a601b68eedb2b34f9089fd7
19 lines
485 B
TypeScript
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;
|
|
}
|
|
}
|