From 1f3e8224fecf1c22d70333a8bd2996f3b2d7b35a Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Fri, 25 Oct 2024 14:46:11 -0700 Subject: [PATCH] updates Signed-off-by: Jess Frazelle --- __tests__/main.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index f1f0462..673af97 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -12,8 +12,7 @@ describe('Testing create_file_mass', () => { material_density: 0.007, body: await fsp.readFile('./example.obj', 'base64'), }); - console.log(JSON.stringify(response)); - if ('error_code' in response) throw 'error: ' + response; + if ('error_code' in response) throw 'error' + JSON.stringify(response); const { status, mass } = response; expect(mass).toBe(103.7539631347172); @@ -28,7 +27,7 @@ describe('Testing create_file_mass', () => { material_density: 0.007, body: await fsp.readFile('./example.obj', 'base64'), }); - if ('error_code' in response) throw 'error'; + if ('error_code' in response) throw 'error' + JSON.stringify(response); const { status, mass } = response; expect(mass).toBe(103.7539631347172);