Skip to content

Commit d34468a

Browse files
authored
feat: Rename Network Interface
1 parent 19bf51f commit d34468a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export enum Method {
2424
}
2525

2626
export enum Network {
27-
MAINNET = 'mainnet',
28-
TESTNET = 'testnet',
27+
LIVE = 'live',
28+
TEST = 'test',
2929
}
3030

3131
export const StringifySecure = (data: object) => serialize(data, { isJSON: true })

tests/integration/createApiToken.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ describe('Frost createApiToken()', async (assert: any) => {
7474
.reply(200, serverResponse)
7575

7676
const frost = new Frost(config)
77-
await frost.createApiToken(token, Network.MAINNET)
77+
await frost.createApiToken(token, Network.LIVE)
7878

7979
const actual = requestBody
80-
const expected = { network: Network.MAINNET }
80+
const expected = { network: Network.LIVE }
8181

8282
assert({
83-
given: `a request with the ${Network.MAINNET} network property`,
84-
should: `return an object with { network: '${Network.MAINNET}' } for the request body`,
83+
given: `a request with the ${Network.LIVE} network property`,
84+
should: `return an object with { network: '${Network.LIVE}' } for the request body`,
8585
actual,
8686
expected,
8787
})

0 commit comments

Comments
 (0)