-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into enhancement/install-sharp
# Conflicts: # package-lock.json # package.json
- Loading branch information
Showing
10 changed files
with
977 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,7 @@ updates: | |
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
fontawesome: | ||
patterns: | ||
- "@fortawesome/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { getBaseFilename } from "@/common" | ||
|
||
test("It returns base filename for file in root", async () => { | ||
const result = getBaseFilename("foo.yml") | ||
expect(result).toEqual("foo") | ||
}) | ||
|
||
test("It returns base filename for file path including dot", async () => { | ||
const result = getBaseFilename("foo.bar.yml") | ||
expect(result).toEqual("foo.bar") | ||
}) | ||
|
||
test("It returns base filename for file in folder", async () => { | ||
const result = getBaseFilename("foo/bar.yml") | ||
expect(result).toEqual("bar") | ||
}) | ||
|
||
test("It returns base filename when file path starts with a slash", async () => { | ||
const result = getBaseFilename("/foo/bar.yml") | ||
expect(result).toEqual("bar") | ||
}) | ||
|
||
test("It returns base filename when file path does not contain an extension", async () => { | ||
const result = getBaseFilename("foo") | ||
expect(result).toEqual("foo") | ||
}) | ||
|
||
test("It returns empty string for the empty string", async () => { | ||
const result = getBaseFilename("") | ||
expect(result).toEqual("") | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.