]> git.ardis.lu - envpass/commit
Refactor global `BROWSER` singleton into dependency injection
authorArdis Lu <ardisglu@gmail.com>
Mon, 7 Sep 2026 05:55:32 +0000 (22:55 -0700)
committerArdis Lu <ardisglu@gmail.com>
Mon, 7 Sep 2026 05:55:32 +0000 (22:55 -0700)
commit5a63df5a529453f57130e60c70eaed3f9d7ef708
treed63ee6f2f5713d806edd3e2f39792e53defb6331
parent3c7d51bf784af76c9fde4e8fa475b7d13d9ffc1b
Refactor global `BROWSER` singleton into dependency injection

DI is required to enable concurrency in tests and should generally reduce flakiness. To complete the refactor and enable concurrency, the other global singleton `SERVER` must also be refactored, and a different approach to `assertConsole` must be used instead of mocking the global `console`.
src/command.js
src/getPrf.js
test/decrypt.test.js [deleted file]
test/index.test.js
test/setup.js
This page took 0.038163 seconds and 4 git commands to generate.