Idle Ascent: Upgrades, Prestige and Idle Earnings Kit
README.md
economyBridgeTests
Checks incrementalKit's economyKit bridge (Inc.useEconomyKit) against the real economyKit module, bank, ledger and request/answer path (6 tests):
- buying an upgrade priced in a bridged currency waits for the bank and grants the level only once the money was taken;
- a second click while the first purchase waits cannot buy a second level on the same money;
- a spend the bank refuses grants nothing, fires
buyRefusedwith the bank's reason and leaves nothing held; - a wallet change made outside the kit redraws it (
walletChanged,Inc.rev) andInc.balancereads the wallet's real number; - the wallet and the levels come back after a reload (a new bank over the same store, the profile loaded again);
- prestige gains land in the wallet, and a gain the wallet refuses is kept in
Inc.walletOwed()and given again.
It leaves the kit's own currencies, curves and screens to the kit's other checks. The bank keeps its wallets in a fake shared store and the profile lives in Inc.memoryStore, so no real wallet or save is touched. It needs economyKit installed in the world. Run it alone with asset.resolve("economyBridgeTests", "testSuite"):run().