Commit dec3dfa3 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Utils): add tests for `getExtension`

parent 4dd1fd2d
...@@ -181,6 +181,21 @@ TestCase { ...@@ -181,6 +181,21 @@ TestCase {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
function test_getExtension_data () {
return [
{ input: 'foobar.baz', output: 'baz' },
{ input: 'classe.george.abitbol', output: 'abitbol' },
{ input: '', output: '' },
{ input: 'cotcotcot', output: '' }
]
}
function test_getExtension (data) {
compare(Utils.getExtension(data.input), data.output)
}
// -----------------------------------------------------------------
function test_includes_data () { function test_includes_data () {
return [ return [
// Test arrays. // Test arrays.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment