Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Oct 22, 2023
1 parent e989506 commit 0e0c4cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/server/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ describe("Web Server Integration", function(){
let r = await this.agent.post("/api/v1/scenes/bar")
.set("Content-Type", "application/octet-stream")
.send(content)
.expect(201);
let res = await this.agent.get("/scenes/bar/models/bar.glb").expect(200);
expect(res.text.slice(0,4).toString()).to.equal("glTF");
expect(res.text.length).to.equal(content.length);
Expand Down
2 changes: 1 addition & 1 deletion source/server/routes/api/v1/scenes/scene/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { parse_glb } from "../../../../../utils/glTF.js";
* @returns
*/
async function getDocument(scene:string, filepath:string){
let {default:orig} = await import("../../../../../utils/schema/default.svx.json");
let {default:orig} = await import("../../../../../utils/schema/default.svx.json", {assert:{type:"json"}});
//dumb inefficient Deep copy because we want to mutate the doc in-place
let document = JSON.parse(JSON.stringify(orig));
let meta = await parse_glb(filepath);
Expand Down

0 comments on commit 0e0c4cb

Please sign in to comment.