diff options
| author | Caleb Mabry <36182383+caleb-mabry@users.noreply.github.com> | 2022-03-23 15:29:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-23 15:29:59 -0400 |
| commit | 2e734ec14fc760f80e2a9dc81cdf9269220bb791 (patch) | |
| tree | 8cd2df719cfd42449712408d6dbc340bd470912e /webAO/components/__tests__ | |
| parent | a263dc01e9d9bbb6c3cc56cfa9f3acb6bbfdc595 (diff) | |
| parent | 313d3db36e5252cfa06e9a48ef681385730bb7a4 (diff) | |
Merge pull request #117 from caleb-mabry/audio-to-html
Adding blip sounds to actual audio tags
Diffstat (limited to 'webAO/components/__tests__')
| -rw-r--r-- | webAO/components/__tests__/blips.test.js | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
