|
1 |
| -import "web-audio-test-api"; |
2 |
| -import SharedAudioContext from "../../../src/lib/audio/shared-audio-context"; |
| 1 | +import 'web-audio-test-api'; |
| 2 | +import SharedAudioContext from '../../../src/lib/audio/shared-audio-context'; |
3 | 3 |
|
4 |
| -describe("Shared Audio Context", () => { |
| 4 | +describe('Shared Audio Context', () => { |
5 | 5 | const audioContext = new AudioContext();
|
6 | 6 |
|
7 |
| - test("returns empty object without user gesture", () => { |
| 7 | + test('returns empty object without user gesture', () => { |
8 | 8 | const sharedAudioContext = new SharedAudioContext();
|
9 | 9 | expect(sharedAudioContext).toMatchObject({});
|
10 | 10 | });
|
11 | 11 |
|
12 |
| - test("returns AudioContext when mousedown is triggered", () => { |
| 12 | + test('returns AudioContext when mousedown is triggered', () => { |
13 | 13 | const sharedAudioContext = new SharedAudioContext();
|
14 |
| - const event = new Event("mousedown"); |
| 14 | + const event = new Event('mousedown'); |
15 | 15 | document.dispatchEvent(event);
|
16 | 16 | expect(sharedAudioContext).toMatchObject(audioContext);
|
17 | 17 | });
|
18 | 18 |
|
19 |
| - test("returns AudioContext when touchstart is triggered", () => { |
| 19 | + test('returns AudioContext when touchstart is triggered', () => { |
20 | 20 | const sharedAudioContext = new SharedAudioContext();
|
21 |
| - const event = new Event("touchstart"); |
| 21 | + const event = new Event('touchstart'); |
22 | 22 | document.dispatchEvent(event);
|
23 | 23 | expect(sharedAudioContext).toMatchObject(audioContext);
|
24 | 24 | });
|
|
0 commit comments