diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-23 22:26:33 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-23 22:26:33 +0100 |
| commit | 06ee582c4adefdb35220c63ee4a30444474e9388 (patch) | |
| tree | db90fc0814013d7c43029f1094cf6f8afffe67e5 /webAO/components/__tests__ | |
| parent | cd3f7eda8f8a9c407b7750a374e8a40c52c2d881 (diff) | |
| parent | 30b4e3e8c84ce3f980fe895d4c64800fc7f00ece (diff) | |
Merge branch 'master' into coolloading
Diffstat (limited to 'webAO/components/__tests__')
| -rw-r--r-- | webAO/components/__tests__/audioChannels.test.js | 9 | ||||
| -rw-r--r-- | webAO/components/__tests__/blips.test.js | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/webAO/components/__tests__/audioChannels.test.js b/webAO/components/__tests__/audioChannels.test.js new file mode 100644 index 0000000..243d870 --- /dev/null +++ b/webAO/components/__tests__/audioChannels.test.js @@ -0,0 +1,9 @@ +import createAudioChannels from "../audioChannels"; + +describe('createAudioChannels', () => { + test('Should create 4 channels', () => { + document.body.innerHTML = '' + createAudioChannels(4) + expect(document.getElementsByClassName('audioChannel').length).toBe(4) + }) +})
\ No newline at end of file diff --git a/webAO/components/__tests__/blips.test.js b/webAO/components/__tests__/blips.test.js new file mode 100644 index 0000000..9c57e78 --- /dev/null +++ b/webAO/components/__tests__/blips.test.js @@ -0,0 +1,9 @@ +import createBlip from "../blip"; + +describe('createBlip', () => { + test('create 3 blips audios', () => { + document.body.innerHTML = `` + createBlip(3) + expect(document.getElementsByClassName('blipSound').length).toBe(3) + }) +})
\ No newline at end of file |
