KamoCRM

Stop pinning setThemeSlug's argument list in a source assertion

Testkamo-internal
Shipped
9 செப்டம்பர், 2026 அன்று 2:32 AM UTC
Author
Kamo
Commit
b4127ca

`tabOrgResolution` was red on main. It asserts on the SOURCE of app/validate/page.tsx and required the literal text `setThemeSlug(orgRef)`, so `f9bd7621` — which added the second argument the function has always been free to take — turned correct, working behaviour into a failing test. The assertion is a regex on the call now. What the test cares about is that the tab's org ref is handed to setThemeSlug at all, and it still says exactly that; it just no longer also asserts the arity of a function it is not testing. Nothing in app/ changes. Worth noting that vitest does not run in CI — the image build runs the guard scripts and `next build` — which is how a red test sat on main without anything going red.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing