This commit is contained in:
Tenghui Zhang 2023-08-15 13:34:39 -07:00
Родитель 053ea88ba6
Коммит 76b3196857
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -13,7 +13,7 @@ import {integrateWebAudioGraph} from './WebAudioGraphIntegrator';
import * as oscillatorGainFixture from '../../fixtures/oscillatorGainParam';
// Node.js environment doesn't provide some browser-specific APIs
// (e.g. performance.now(), localStorage.getItem and localStorage.setItem)
// (e.g. performance.now(), localStorage.getItem() and localStorage.setItem())
// Mocking these ensures no errors are thrown when running tests.
global.performance = {
now: jest.fn(() => Date.now()),