Skip to content

Instantly share code, notes, and snippets.

@rmehner
Created April 24, 2019 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmehner/f6b92c2cc00dae7ba7a666a988cb03c1 to your computer and use it in GitHub Desktop.
Save rmehner/f6b92c2cc00dae7ba7a666a988cb03c1 to your computer and use it in GitHub Desktop.
diff --git "a/test/fixture/r\303\266ck/d\303\266ts" "b/test/fixture/r\303\266ck/d\303\266ts"
new file mode 100644
index 0000000..e69de29
diff --git a/test/index.js b/test/index.js
index 22efd0d..fd749ee 100644
--- a/test/index.js
+++ b/test/index.js
@@ -27,11 +27,16 @@ function testSpecialChars() {
assert.equal(trueCasePathSync('test/fixture/F[U&N%K)Y'), path.join(__dirname, 'fixture/f[u&n%k)y'), 'works with file names w/ special chars')
}
+function testUmlauts() {
+ assert.equal(trueCasePathSync('test/fixture/röck/döts'), path.join(__dirname, 'fixture/röck/döts'), 'works with file names /w umlauts')
+}
+
Promise.all([
testSync(),
testRelative(),
testAsync(),
- testSpecialChars()
+ testSpecialChars(),
+ testUmlauts()
])
.then(() => {
console.log('All tests passed!')
@@ -40,4 +45,4 @@ Promise.all([
console.log('Test failed!')
console.error(err)
process.exitCode = 1
- })
\ No newline at end of file
+ })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment