add basic readme and expand tests a little (#3)

This commit is contained in:
Kurt Hutten
2022-08-02 13:43:49 +10:00
committed by GitHub
parent 29a74f5b8c
commit 08b50ee5a2
4 changed files with 2010 additions and 1 deletions

View File

@ -22,3 +22,16 @@ describe('Testing create_file_execution', () => {
expect(true).toBe(true);
});
});
describe('Testing create_file_mass', () => {
it("shouldn't throw", async () => {
const { status, mass } = (await file.create_file_mass({
src_format: 'obj',
material_density: '0.007',
body: await fsp.readFile('./example.obj', 'base64'),
})) as Models['FileMass_type'];
expect(mass).toBe(0.7063786);
expect(status).toBe('Completed');
expect(true).toBe(true);
});
});