Skip to content

Commit

Permalink
hardcode the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
KeKs0r committed Oct 25, 2024
1 parent 26072c4 commit f7302b2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/__tests__/happydom.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import { GlobalRegistrator } from "@happy-dom/global-registrator";

GlobalRegistrator.register({ url: "http://numia.xyz" });
GlobalRegistrator.register({
url: "http://numia.xyz",
settings: {
navigator: {
// Need to hardcode, due to difference local and in CI
userAgent:
"Mozilla/5.0 (X11; Darwin arm64) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/0.0.0",
},
},
});

0 comments on commit f7302b2

Please sign in to comment.