CORPORATION: Rename functions in Actions.ts (#1272)

This should be a straight rename, no functionality changes.
This commit is contained in:
catloversg
2024-05-13 04:52:07 +07:00
committed by GitHub
parent 7f5bc5700e
commit 25afecc0ec
24 changed files with 146 additions and 146 deletions

View File

@@ -9,11 +9,11 @@ import {
import { Player, setPlayer } from "../../src/Player";
import { PlayerObject } from "../../src/PersonObjects/Player/PlayerObject";
import {
AcceptInvestmentOffer,
BuyBackShares,
GoPublic,
IssueNewShares,
SellShares,
acceptInvestmentOffer,
buyBackShares,
goPublic,
issueNewShares,
sellShares,
} from "../../src/Corporation/Actions";
describe("Corporation", () => {
@@ -87,32 +87,32 @@ describe("Corporation", () => {
expectSharesToAddUp(Player.corporation!);
});
it("should be preserved by acceptInvestmentOffer", () => {
AcceptInvestmentOffer(corporation);
acceptInvestmentOffer(corporation);
expectSharesToAddUp(corporation);
});
it("should be preserved by goPublic", () => {
const numShares = 1e8;
GoPublic(corporation, numShares);
goPublic(corporation, numShares);
expectSharesToAddUp(corporation);
});
it("should be preserved by IssueNewShares", () => {
const numShares = 1e8;
GoPublic(corporation, numShares);
goPublic(corporation, numShares);
corporation.issueNewSharesCooldown = 0;
IssueNewShares(corporation, numShares);
issueNewShares(corporation, numShares);
expectSharesToAddUp(corporation);
});
it("should be preserved by BuyBackShares", () => {
const numShares = 1e8;
GoPublic(corporation, numShares);
BuyBackShares(corporation, numShares);
goPublic(corporation, numShares);
buyBackShares(corporation, numShares);
expectSharesToAddUp(corporation);
});
it("should be preserved by SellShares", () => {
const numShares = 1e8;
GoPublic(corporation, numShares);
goPublic(corporation, numShares);
corporation.shareSaleCooldown = 0;
SellShares(corporation, numShares);
sellShares(corporation, numShares);
expectSharesToAddUp(corporation);
});
});