-
-
Save qunabu/8e1f343a8c9d99b94a12ae4e37482fdb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
it("should properly sanitize strings", () => { | |
let result; | |
const testValues = { | |
Avion: "Avi" + String.fromCharCode(243) + "n", | |
"The-space": "The space", | |
"Weird-chars-": "Weird chars!!", | |
"file-name.zip": "file name.zip", | |
"my-name.zip": "my.name.zip", | |
}; | |
for (result in testValues) { | |
expect(sanitizeString(testValues[result])).toBe(result); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment