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);