Skip to content

Fix search-provider.test.js to test constructor - #1583

Open
duggiefresh wants to merge 1 commit into
internetarchive:masterfrom
duggiefresh:fix-search-provider-test
Open

Fix search-provider.test.js to test constructor#1583
duggiefresh wants to merge 1 commit into
internetarchive:masterfrom
duggiefresh:fix-search-provider-test

Conversation

@duggiefresh

Copy link
Copy Markdown
Contributor

The search-provider test accidentally wrapped the constructor test in a describe block, which does not fire test expectations correctly. This PR updates the constructor test to use the test method instead.

This adds to the total number of tests run, changing it from 8 tests to 9 tests.

Before

Screenshot 2026-08-07 at 9 16 32 PM

After

Screenshot 2026-08-07 at 9 17 01 PM

The `search-provider` test accidentally wrapped the constructor test in a `describe`
block, which does not fire test expectations correctly. This PR updates
the constructor test to use the `test` method instead.

This adds to the total number of tests run, changing it from 8 tests to 9 tests.
@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.70%. Comparing base (16f5d95) to head (7962250).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1583   +/-   ##
=======================================
  Coverage   63.70%   63.70%           
=======================================
  Files          68       68           
  Lines        6216     6216           
  Branches     1378     1378           
=======================================
  Hits         3960     3960           
  Misses       2217     2217           
  Partials       39       39           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant