Skip to content

Commit

Permalink
Bugfix trimExt spec
Browse files Browse the repository at this point in the history
  • Loading branch information
yucho committed Aug 5, 2019
1 parent afa9c97 commit 43aea64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -206,7 +206,7 @@ Trims a filename's extension.

It is ignoring `.min` & `.dev` as extensions, and considers exts with up to 8 chars.

`upath.removeExt(filename, ['min', '.dev'], 8)` --returns-->
`upath.trimExt(filename, ['min', '.dev'], 8)` --returns-->

✓ `'my/trimedExt.txt'` ---> `'my/trimedExt'`
✓ `'my/trimedExt.min'` ---> `'my/trimedExt.min'`
Expand Down
2 changes: 1 addition & 1 deletion source/spec/upath-spec.coffee
Expand Up @@ -358,7 +358,7 @@ describe "\n# upath v#{VERSION}", ->
describe """\n
It is ignoring `.min` & `.dev` as extensions, and considers exts with up to 8 chars.
`upath.removeExt(filename, ['min', '.dev'], 8)` --returns-->\n
`upath.trimExt(filename, ['min', '.dev'], 8)` --returns-->\n
""", ->
inputToExpected =
'my/trimedExt.txt': 'my/trimedExt'
Expand Down

0 comments on commit 43aea64

Please sign in to comment.