Skip to content

Commit

Permalink
fix postpone unit tests (#947)
Browse files Browse the repository at this point in the history
* fix postpone unit tests

* fix lint
  • Loading branch information
MarekVigas authored Jan 2, 2025
1 parent 6247d1f commit 445c5e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions __tests__/calcIntegration.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { promises as fs, readdirSync } from 'fs'
import { parseStringPromise } from 'xml2js'
import { convertToXML } from '../src/lib/xml/xmlConverter'
import { calculate } from '../src/lib/calculation'
import { calculate, TAX_YEAR } from '../src/lib/calculation'
import { TaxFormUserInput } from '../src/types/TaxFormUserInput'
import { PostponeUserInput } from '../src/types/PostponeUserInput'
import { convertPostponeToXML } from '../src/lib/postpone/postponeConverter'
Expand Down Expand Up @@ -50,7 +50,9 @@ describe('postpone', () => {
// Access named export
const input: PostponeUserInput = inputModule[`${testCase}Input`]

const outputXml = convertPostponeToXML(setDate(input))
const outputXml = convertPostponeToXML(
setDate(input, new Date(TAX_YEAR + 1, 0, 1)),
)

if (WRITE_FILES) {
fs.writeFile(
Expand Down

0 comments on commit 445c5e6

Please sign in to comment.