mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 13:39:12 +00:00
10 lines
214 B
JavaScript
10 lines
214 B
JavaScript
import test from 'ava'
|
|
|
|
import { Loro } from '../index.js'
|
|
|
|
test('loro text', (t) => {
|
|
const loro = new Loro();
|
|
const text = loro.getText("text");
|
|
text.insert(loro, 0, "abc");
|
|
t.is(text.value(), "abc");
|
|
})
|