mirror of
https://github.com/galacean/engine.git
synced 2026-07-04 22:54:22 +08:00
13 lines
438 B
TypeScript
13 lines
438 B
TypeScript
import { Engine } from "@oasis-engine/core";
|
|
import "../src/TextLoader";
|
|
|
|
describe("text loader test", () => {
|
|
it("text loader test", () => {
|
|
const engine = new Engine(null, { init: () => {}, canIUse: jest.fn() });
|
|
const promise = engine.resourceManager.load(
|
|
"https://gw.alipayobjects.com/os/bmw-prod/d64cb568-bf86-41f0-8c9e-d1be9424bd98.txt"
|
|
);
|
|
return expect(promise).resolves.toEqual("test request");
|
|
});
|
|
});
|