Skip to content

Commit 2e64253

Browse files
committed
chore: less hacky way to fix tests?
1 parent f39246c commit 2e64253

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

tests/helpers/testHelpers.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import {
3131
_dangerouslyOverwriteController,
3232
} from "../../components/controller"
3333
import { loadConfig } from "../mocks/configSwizzleManager"
34-
import { defaultFlags } from "../../components/flags.js"
3534

3635
export function asMock<T>(value: T): Mock {
3736
return value as Mock
@@ -145,8 +144,6 @@ export async function createControllerInstance() {
145144
instance._resolveRoot = realRootForTestPurposes
146145

147146
await instance.boot(false)
148-
defaultFlags["peacock"].flags["steamAuthenticationMethod"].default =
149-
"OFFICIAL" // FIXME: external_steam test in oauthToken.test.ts only supports official as an authentication method
150147
_dangerouslyOverwriteController(instance)
151148
return instance
152149
}

tests/src/oauthToken.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ describe("oauthToken", () => {
7777
grant_type: "external_steam",
7878
steam_userid: "000000000047",
7979
steam_appid: "1659040",
80+
steam_clienttoken: "00000000",
8081
pId: pId,
8182
}
8283

0 commit comments

Comments
 (0)