mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-11 02:44:20 +00:00
fixed formatting issues
This commit is contained in:
parent
b8b7280f3a
commit
7964a0ba07
1 changed files with 10 additions and 8 deletions
|
@ -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");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue