How I made my Angular Service unit-testable when using the AudioContext API — I recently created an Angular service that uses the AudioContext API. When attempting to write unit tests, though, I quickly discovered that AudioContext does not, of course, exist in the unit test environment. …