diff options
| author | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-18 00:34:25 -0400 |
|---|---|---|
| committer | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-18 00:34:25 -0400 |
| commit | 0b6b4b085cee48248fe2025a2514252ee20ee774 (patch) | |
| tree | 27caf9c096dd7942e9f639a0c8fded5bf27ecd06 /webAO/components/__tests__ | |
| parent | 47ab340c76e6174f0f94fb4cbfec1540b6a18807 (diff) | |
unit tests
Diffstat (limited to 'webAO/components/__tests__')
| -rw-r--r-- | webAO/components/__tests__/audioChannels.test.js | 9 |
1 files changed, 9 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 |
