@jeremyckahn/farmhand
Version:
A farming game
17 lines (14 loc) • 371 B
text/typescript
import { testState } from '../../test-utils/index.js'
import { applyLoanInterest } from './applyLoanInterest.js'
describe('applyLoanInterest', () => {
test('applies loan interest', () => {
expect(
applyLoanInterest(
testState({
loanBalance: 100,
newDayNotifications: [],
})
).loanBalance
).toEqual(102)
})
})