web: mock `_.uniqueId()` in tests
Created by: valerybugakov
Changes
- Mocked
_.uniqueId()
in tests to avoid updating snapshots once the sequence or number of tests using this helper changes. The value returned by_.uniqueId()
depends on the number of previous calls because it maintains an internal variable that increments on each call. - Updated snapshots with mocked values.
Encountered this issue in the PR: https://github.com/sourcegraph/sourcegraph/pull/21347.