oss-slu/image-recognition-integration-system

[FEATURE]: Add unit tests for indexedDbHelpers

開放

#62 建立於 2025年9月1日

 (0 則留言) (0 個反應) (1 位負責人)TypeScript (8 個分叉)auto 404
enhancementgood first issuehacktoberfest

倉庫指標

星標
 (4 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Scenario

Given the indexedDbHelpers.ts utility provides CRUD functions for images in IndexedDB,
When developers write unit tests for each helper function,
Then data persistence, retrieval, and error handling should be verified with automated tests.

Acceptance Criteria

  • Test suite tests/indexedDbHelpers.test.ts created.
  • Covers all CRUD helper functions.
    • Create
    • Read
    • Update
    • Delete
  • Tests pass locally and in CI.
  • Documentation/comments in test file for future contributors.

Additional Context

Reference file: utils/indexedDbHelpers.ts

Jest testing framework documentation https://jestjs.io/docs/getting-started

IndexedDB documentation: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API

IndexedDB is used in:

貢獻者指南