mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 21:43:59 +00:00
11 lines
214 B
JavaScript
11 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");
|
||
|
})
|