Skip to content

Commit 62ac685

Browse files
committed
Update more tests to use uid
1 parent d28d030 commit 62ac685

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/app/src/cli/services/dev/update-extension.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ vi.mock('../../models/app/loader.js', async () => {
3030

3131
const apiKey = 'mock-api-key'
3232
const registrationId = 'mock-registration-id'
33+
const handle = 'mock-handle'
3334
const stdout = {write: vi.fn()} as any
3435
const stderr = {write: vi.fn()} as any
3536

@@ -41,7 +42,7 @@ describe('updateExtensionDraft()', () => {
4142
runtime_context: 'strict',
4243
settings: {type: 'object'},
4344
type: 'web_pixel_extension',
44-
handle: 'mock-handle',
45+
handle,
4546
} as any
4647

4748
const mockExtension = await testUIExtension({
@@ -69,7 +70,7 @@ describe('updateExtensionDraft()', () => {
6970
expect(developerPlatformClient.updateExtension).toHaveBeenCalledWith({
7071
apiKey,
7172
context: '',
72-
handle: 'mock-handle',
73+
handle,
7374
registrationId,
7475
config:
7576
'{"runtime_context":"strict","runtime_configuration_definition":{"type":"object"},"serialized_script":"dGVzdCBjb250ZW50"}',

0 commit comments

Comments
 (0)