fix(infra): fix built in property order error (#8524)

This commit is contained in:
EYHN
2024-10-17 05:15:09 +00:00
parent 4e640b4ffc
commit ee641f0377
3 changed files with 31 additions and 8 deletions
@@ -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);
});