|
1 | 1 | /** @babel */ |
2 | 2 |
|
3 | | -import { lineCountIfLarge, lineLengthIfLongerThan, largeness } from "../commons-atom/editor-largeness" |
| 3 | +import { lineCountIfLarge, lineLengthIfLong, largeness } from "../commons-atom/editor-largeness" |
4 | 4 | import type { TextEditor, WorkspaceOpenOptions } from "atom" |
5 | 5 | import { open, track, cleanup } from "temp" |
6 | 6 | import { Chance } from "chance" |
@@ -55,14 +55,14 @@ describe("editor", () => { |
55 | 55 | }) |
56 | 56 | }) |
57 | 57 |
|
58 | | - describe("lineLengthIfLongerThan", () => { |
| 58 | + describe("lineLengthIfLong", () => { |
59 | 59 | it("return 0 for short files", async () => { |
60 | 60 | const { textEditor } = await openTempTextEditor(1, 1) |
61 | | - expect(lineLengthIfLongerThan(textEditor, 1000)).toBe(0) |
| 61 | + expect(lineLengthIfLong(textEditor, 1000)).toBe(0) |
62 | 62 | }) |
63 | 63 | it("return largest line length for long files", async () => { |
64 | 64 | const { textEditor, fileLegth } = await openTempTextEditor(1, 100) |
65 | | - expect(lineLengthIfLongerThan(textEditor, 100)).toBeGreaterThanOrEqual(fileLegth - 10) |
| 65 | + expect(lineLengthIfLong(textEditor, 100)).toBeGreaterThanOrEqual(fileLegth - 10) |
66 | 66 | }) |
67 | 67 | }) |
68 | 68 |
|
|
0 commit comments