aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorCaleb Mabry <caleb.mabry.15@cnu.edu>2023-02-01 16:31:05 -0500
committerCaleb Mabry <caleb.mabry.15@cnu.edu>2023-02-01 16:31:05 -0500
commit1a16ec09d57d32500c629c4a6df7f841e5c951c4 (patch)
treeb8ddb91b38164a1894e1f725f694995d1625360b /webAO
parent58fa5489a94b1fcb55f446d6b4e636268daffcd1 (diff)
Mock values that dont matter
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client/__tests__/setEmote.test.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/webAO/client/__tests__/setEmote.test.js b/webAO/client/__tests__/setEmote.test.js
index 53bb68d..252fb2a 100644
--- a/webAO/client/__tests__/setEmote.test.js
+++ b/webAO/client/__tests__/setEmote.test.js
@@ -3,20 +3,14 @@ import Client from '../../client';
import fileExists from '../../utils/fileExists';
import transparentPng from '../../constants/transparentPng';
-jest.mock('../../client');
+jest.mock('../../viewport/utils/createMusic')
jest.mock('../../utils/fileExists');
-
+jest.mock('../../viewport/utils/createSfxAudio')
+jest.mock('../../viewport/utils/createShoutAudio')
+jest.mock('../../viewport/utils/createTestimonyAudio')
describe('setEmote', () => {
const AO_HOST = '';
- Client.mockReturnValue({
- viewport: {
- lastChar: 'long',
- chatmsg: {
- name: 'byte',
- },
- }
- });
const client = new Client('127.0.0.1');
const firstExtension = '.gif';