Skip to content

Commit

Permalink
chore: updated bootstrapping code to support v2 capabilities (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsalaber authored Aug 22, 2024
1 parent d1552af commit a902dc9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion harness/features/bootstrapping.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ describe('Bootstrapping Tests', () => {
clientSDKKey: 'client-key',
}

const version = hasCapability(sdkName, Capabilities.v2Config)
? 'v2'
: 'v1'
scope
.get(
`/client/${testClient.clientId}/config/v1/server/bootstrap/${testClient.sdkKey}.json`,
`/client/${testClient.clientId}/config/${version}/server/bootstrap/${testClient.sdkKey}.json`,
)
.reply(200, clientsideConfig)

Expand Down

0 comments on commit a902dc9

Please sign in to comment.