mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 05:25:53 +08:00
fix(infra): fix built in property order error (#8524)
This commit is contained in:
@@ -39,3 +39,21 @@ test('fractional-indexing', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('no postfix', () => {
|
||||
expect(
|
||||
generateFractionalIndexingKeyBetween('a0', null).startsWith('a1')
|
||||
).toBe(true);
|
||||
expect(
|
||||
generateFractionalIndexingKeyBetween('a01', null).startsWith('a1')
|
||||
).toBe(true);
|
||||
expect(
|
||||
generateFractionalIndexingKeyBetween('a0001', null).startsWith('a1')
|
||||
).toBe(true);
|
||||
expect(
|
||||
generateFractionalIndexingKeyBetween(null, 'a0').startsWith('Zz')
|
||||
).toBe(true);
|
||||
expect(
|
||||
generateFractionalIndexingKeyBetween('a0', 'a01').startsWith('a00V')
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user