mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-06 12:25:03 +00:00
62a3a93552
* feat: make vitest tests pass * chore: update readme & add deno test for web bundle * chore: bump version to 1.0.8-alpha.0 * chore: bump loro-crdt version * fix: build script export init method from loro-wasm/web * chore: bump version * chore: specify which files to include for npm publish * refactor: rename loro-js to loro-js-test * refactor: remove the old loro-js folder * fix: build scripts * chore: 1.0.8-alpha.3 * chore: add release info
10 lines
296 B
TypeScript
10 lines
296 B
TypeScript
import init, { initSync, LoroDoc } from "../web/loro_wasm.js";
|
|
import { expect } from "npm:expect";
|
|
|
|
await init();
|
|
|
|
Deno.test("basic", () => {
|
|
const doc = new LoroDoc();
|
|
doc.getText("text").insert(0, "Hello, world!");
|
|
expect(doc.getText("text").toString()).toBe("Hello, world!");
|
|
});
|