mirror of
https://github.com/galacean/engine.git
synced 2026-05-23 10:22:11 +08:00
15 lines
470 B
TypeScript
15 lines
470 B
TypeScript
import "../src/JSONLoader";
|
|
import { WebGLEngine } from "../../rhi-webgl/src/WebGLEngine";
|
|
|
|
describe("text loader test", () => {
|
|
it("text loader test", () => {
|
|
const engine = new WebGLEngine(document.createElement("canvas"));
|
|
const promise = engine.resourceManager.load(
|
|
"https://gw.alipayobjects.com/os/bmw-prod/73cba7a4-221b-4e32-8db6-c87968cf7ce0.json"
|
|
);
|
|
return expect(promise).resolves.toEqual({
|
|
info: "test request"
|
|
});
|
|
});
|
|
});
|