Skip to content

Commit

Permalink
fix test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
johatr committed Aug 21, 2023
1 parent f372190 commit 5f12698
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const renderApp = () => {
};

if (USE_MOCK) {
const webComponentTag = document.createElement("dab-aktivitetsplan")
webComponentTag.setAttribute("data-fnr", mockfnr)
document.getElementById("root")!!.appendChild(webComponentTag)
import('./mocks')
.then(({ default: startWorker }) => startWorker())
.then(() => {
Expand Down

0 comments on commit 5f12698

Please sign in to comment.