mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 14:08:55 +08:00
feat(infra): framework
This commit is contained in:
@@ -263,6 +263,13 @@ describe('livedata', () => {
|
||||
inner$.next(4);
|
||||
expect(flatten$.value).toEqual([4, 3]);
|
||||
}
|
||||
|
||||
{
|
||||
const wrapped$ = new LiveData([] as LiveData<number>[]);
|
||||
const flatten$ = wrapped$.flat();
|
||||
|
||||
expect(flatten$.value).toEqual([]);
|
||||
}
|
||||
});
|
||||
|
||||
test('computed', () => {
|
||||
|
||||
Reference in New Issue
Block a user