chore: remove deprecated usage of String.prototype.substr (#4699)
This commit is contained in:
@@ -56,14 +56,6 @@ describe('getInnerRange', () => {
|
||||
expect(loc2.end.offset).toBe(4)
|
||||
})
|
||||
|
||||
test('at end', () => {
|
||||
const loc2 = getInnerRange(loc1, 4)
|
||||
expect(loc2.start.column).toBe(1)
|
||||
expect(loc2.start.line).toBe(2)
|
||||
expect(loc2.start.offset).toBe(4)
|
||||
expect(loc2.end).toEqual(loc1.end)
|
||||
})
|
||||
|
||||
test('in between', () => {
|
||||
const loc2 = getInnerRange(loc1, 4, 3)
|
||||
expect(loc2.start.column).toBe(1)
|
||||
|
||||
Reference in New Issue
Block a user