Skip to content

Commit 8bb9e72

Browse files
committed
rename builder method
1 parent 110a983 commit 8bb9e72

File tree

3 files changed

+5
-118
lines changed

3 files changed

+5
-118
lines changed

src/configuration-wire-types.spec.ts

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/configuration-wire/configuration-wire-helper.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('ConfigurationWireHelper', () => {
1919
baseUrl: TEST_BASE_URL,
2020
});
2121

22-
const wirePacket = await helper.getBootstrapConfigurationFromApi();
22+
const wirePacket = await helper.fetchBootstrapConfiguration();
2323

2424
expect(wirePacket.version).toBe(1);
2525
expect(wirePacket.config).toBeDefined();
@@ -49,7 +49,7 @@ describe('ConfigurationWireHelper', () => {
4949
baseUrl: TEST_BASE_URL,
5050
});
5151

52-
const wirePacket = await helper.getBootstrapConfigurationFromApi();
52+
const wirePacket = await helper.fetchBootstrapConfiguration();
5353

5454
expect(wirePacket.version).toBe(1);
5555
expect(wirePacket.config).toBeDefined();
@@ -81,7 +81,7 @@ describe('ConfigurationWireHelper', () => {
8181
baseUrl: TEST_BASE_URL,
8282
});
8383

84-
const wirePacket = await helper.getBootstrapConfigurationFromApi();
84+
const wirePacket = await helper.fetchBootstrapConfiguration();
8585

8686
if (!wirePacket.config) {
8787
throw new Error('Flag config not present in ConfigurationWire');

src/configuration-wire/configuration-wire-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ export class ConfigurationWireHelper {
5151
}
5252

5353
/**
54-
* Builds an `IConfigurationWire` object from flag and bandit API responses.
54+
* Fetches configuration data from the API and build a Bootstrap Configuration (aka an `IConfigurationWire` object).
5555
* The IConfigurationWire instance can be used to bootstrap some SDKs.
5656
*/
57-
public async getBootstrapConfigurationFromApi(): Promise<IConfigurationWire> {
57+
public async fetchBootstrapConfiguration(): Promise<IConfigurationWire> {
5858
// Get the configs
5959
let banditResponse: IBanditParametersResponse | undefined;
6060
const configResponse: IUniversalFlagConfigResponse | undefined =

0 commit comments

Comments
 (0)