Skip to content

Commit

Permalink
Polyfill testdouble support
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 3, 2021
1 parent 43526de commit 58e0187
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@

{{content-for "head-footer"}}
{{content-for "test-head-footer"}}

<script>
// testdouble support
// testdouble doesn't natively support the browser as it assumes
// that a `global` identifier will be available, but that is not the case for browsers
window.global = globalThis;
</script>
</head>
<body>
{{content-for "body"}}
Expand Down

0 comments on commit 58e0187

Please sign in to comment.