We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f24de3 commit 9c8c648Copy full SHA for 9c8c648
packages/app/src/utils/TestRunner.ts
@@ -1,13 +1,13 @@
1
// const RUN_EVENT = 'app-run-tests'
2
const VIEW_SOURCE_EVENT = 'app-source-highlight'
3
4
-export const viewSource = (
5
- callSource: string | undefined
6
-) => {
7
- if (!callSource) return
+export const viewSource = (callSource: string | undefined) => {
+ if (!callSource) {
+ return
+ }
8
window.dispatchEvent(
9
new CustomEvent(VIEW_SOURCE_EVENT, {
10
- detail: callSource
+ detail: callSource
11
})
12
)
13
}
0 commit comments