fixed formatting issues

This commit is contained in:
Eugen Dukhin 2024-10-16 14:08:03 +02:00
parent b8b7280f3a
commit 7964a0ba07

View file

@ -6,7 +6,7 @@ import {
parseInputFiles, parseInputFiles,
unmatchedPatterns, unmatchedPatterns,
uploadUrl, uploadUrl,
alignAssetName alignAssetName,
} from "../src/util"; } from "../src/util";
import * as assert from "assert"; import * as assert from "assert";
@ -370,16 +370,18 @@ describe("util", () => {
}); });
}); });
describe('replaceSpacesWithDots', () => { describe("replaceSpacesWithDots", () => {
it('replaces all spaces with dots', () => { it("replaces all spaces with dots", () => {
expect(alignAssetName("John Doe.bla")).toBe("John.Doe.bla"); expect(alignAssetName("John Doe.bla")).toBe("John.Doe.bla");
}); });
it('handles names with multiple spaces', () => { it("handles names with multiple spaces", () => {
expect(alignAssetName("John William Doe.bla")).toBe("John.William.Doe.bla"); expect(alignAssetName("John William Doe.bla")).toBe(
"John.William.Doe.bla",
);
}); });
it('returns the same string if there are no spaces', () => { it("returns the same string if there are no spaces", () => {
expect(alignAssetName("JohnDoe")).toBe("JohnDoe"); expect(alignAssetName("JohnDoe")).toBe("JohnDoe");
}); });
}); });