Skip to content

Commit

Permalink
fix: replace stamp with test_stamp for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Sep 16, 2024
1 parent ffc58c8 commit 6822e4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default async (): Promise<Config.InitialOptions> => {
process.env.WORKER_PSS_ADDRESS = await getPssAddress('http://localhost:11633')
}

if (!process.env.STAMP) {
process.env.STAMP = await getOrBuyStamp()
if (!process.env.TEST_STAMP) {
process.env.TEST_STAMP = await getOrBuyStamp()
}

return {
Expand Down
4 changes: 2 additions & 2 deletions test/command/stamp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ describeCommand(
})

it('should show a specific stamp', async () => {
await invokeTestCli(['stamp', 'show', Types.asString(process.env.STAMP)])
const pattern = [['Stamp ID', Types.asString(process.env.STAMP)], ['Usage'], ['Capacity'], ['TTL']]
await invokeTestCli(['stamp', 'show', Types.asString(process.env.TEST_STAMP)])
const pattern = [['Stamp ID', Types.asString(process.env.TEST_STAMP)], ['Usage'], ['Capacity'], ['TTL']]
expect(consoleMessages).toMatchLinesInOrder(pattern)
})

Expand Down
2 changes: 1 addition & 1 deletion test/quality-of-life/topic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ expect.extend({

describeCommand(
'Specifying Topics',
({ consoleMessages, getLastMessage }) => {
({ consoleMessages }) => {
beforeAll(async () => {
await invokeTestCli(['identity', 'create', 'topic', '-P', 'topic'])
await invokeTestCli([
Expand Down
2 changes: 1 addition & 1 deletion test/utility/stamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const getOrBuyStamp = async (): Promise<string> => {
return newStamp
}

export const getStampOption = (): string[] => ['--stamp', process.env.STAMP || '']
export const getStampOption = (): string[] => ['--stamp', process.env.TEST_STAMP || '']

0 comments on commit 6822e4b

Please sign in to comment.