本文整理汇总了TypeScript中poker/appconfig.overrideConfiguration函数的典型用法代码示例。如果您正苦于以下问题:TypeScript overrideConfiguration函数的具体用法?TypeScript overrideConfiguration怎么用?TypeScript overrideConfiguration使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了overrideConfiguration函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: beforeAll
beforeAll(() => {
overrideConfiguration({
game: {
cardsOverlaySupported: true,
},
});
});
开发者ID:online-poker,项目名称:poker-html-client,代码行数:7,代码来源:playerCards.test.ts
示例2: it
it("Confguration override work with game settings override", function () {
overrideConfiguration({
game: {
noTableMoneyLimit: false,
},
});
expect(appConfig.game.noTableMoneyLimit).toEqual(false);
expect(appConfig.game.autoFoldAsFoldOnRaise).toEqual(true);
expect(appConfig.game.handHistory).toBeDefined();
});
开发者ID:online-poker,项目名称:poker-html-client,代码行数:10,代码来源:appConfig.test.ts
示例3: it
it("Overlay is not needed if not supported", function () {
overrideConfiguration({
game: {
cardsOverlaySupported: false,
},
});
const tableView = new TableView(1, {
TableId: 1,
TableName: "",
BigBlind: 200,
SmallBlind: 100,
CurrencyId: 1,
HandsPerHour: 0,
AveragePotSize: 0,
JoinedPlayers: 2,
MaxPlayers: 8,
PotLimitType: 2,
}, noopApiProvider);
const players: GamePlayerStartInformation[] = [{
PlayerId: 1,
Money: 10000,
}, {
PlayerId: 2,
Money: 10000,
}];
const actions: GameActionStartInformation[] = [];
login("player1");
loginId(1);
authenticated(true);
const tableSatusPlayers = [
getSeatPlayer(1, 10000),
getSeatPlayer(2, 10000),
];
tableView.onTableStatusInfo(tableSatusPlayers, [], null, 4, 100, 10, null, null, null, null, 1, true, 0, false, true, null, 0, 2);
tableView.onGameStarted(1, players, actions, 4);
tableView.onBet(2, 0, 100, 1);
tableView.onBet(1, 0, 200, 2);
tableView.onPlayerCards(1, [15, 5, 41, 18]);
tableView.onPlayerCards(2, [1, 2, 3, 4]);
tableView.onBet(2, 2, 50, 1);
tableView.onBet(1, 2, 50, 1);
expect(tableView.tablePlaces.place1().needCardsOverlay()).toEqual(false);
expect(tableView.tablePlaces.place2().needCardsOverlay()).toEqual(false);
});
开发者ID:online-poker,项目名称:poker-html-client,代码行数:45,代码来源:playerCards.test.ts
示例4: it
it(`Does not collapse it when collapse setting is ${settingStatus} and ${expandedStatus}`, function () {
const actionBlock = new ActionBlock();
setupTestSlider(actionBlock);
setupInGamePlayer(actionBlock);
overrideConfiguration({
game: {
collapseRaiseBlockWhenExpanded: definition.collapseRaiseBlockWhenExpanded,
},
});
actionBlock.checkOrCallAmount(100);
actionBlock.callAmount(100);
actionBlock.playerMoney(1000);
actionBlock.maxAmountOfMoneyForOtherActivePlayers(10000);
actionBlock.expanded(definition.expanded);
expect(actionBlock.raiseBlockVisible()).toEqual(true);
expect(actionBlock.raiseBlockCollapsed()).toEqual(definition.collapsed);
});
开发者ID:online-poker,项目名称:poker-html-client,代码行数:18,代码来源:actionBlock.test.ts
注:本文中的poker/appconfig.overrideConfiguration函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论