Skip to content

Commit

Permalink
Added iframe hello in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Sep 12, 2024
1 parent 18620d0 commit 2b01eab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/fdc3-get-agent/test/support/FrameTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ export function handleChannelSelectorComms(_value: string, parent: MockWindow, s
parent.dispatchEvent({
type: "message",
data: {
type: "iframeHello"
type: "iframeHello",
payload: {
initialCSS: {
"width": "100px"
}
}
} as IframeHello,
origin: CHANNEL_SELECTOR_URL,
source,
Expand Down Expand Up @@ -74,7 +79,12 @@ export function handleIntentResolverComms(_value: string, parent: MockWindow, so
parent.dispatchEvent({
type: "message",
data: {
type: "iframeHello"
type: "iframeHello",
payload: {
initialCSS: {
"width": "100px"
}
}
} as IframeHello,
origin: INTENT_RESPOLVER_URL,
source,
Expand Down
3 changes: 3 additions & 0 deletions toolbox/fdc3-workbench/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "../../packages/fdc3"
}
]
}

0 comments on commit 2b01eab

Please sign in to comment.