Skip to content

Change the way to do unit testing #22

Description

@rayriffy

Credit card statement is not a thing that should be publicly shared. There's some possible improvements.

  • Create separate unit testing for PDF reader, using dataset that not related to credit card statement. (i.e. mock table pdf)
  • Mock data for credit card parser can be sampled out as a result that has been extracted from pdf reader
const citiSamplePage: string[][] = [
  [
    "130",
    ".69",
    "07",
    "FEB",
    "02",
    "FEB",
    "PIXIV",
    "FANBOX",
    "TOKYO",
    "JP",
    "YEN",
    "500",
    ".00",
   ...
  ]
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions