require('./fake-path-factory');

angular
.module('fake')
.service('fake', [
  'FakePath',
  function(FakePath) {

    return (path) => {
      return new FakePath(path);
    };
  }
]);
require('./fake-path-factory');

angular
.module('fake')
.service('fake', [
  'FakePath',
  function(FakePath) {
    return function(path) {
      return new FakePath(path);
    };
  }
]);
--- 
+++ 
@@ -5,7 +5,8 @@
 .service('fake', [
   'FakePath',
   function(FakePath) {
-    return function(path) {
+
+    return (path) => {
       return new FakePath(path);
     };
   }
Add ES6 fat arrow function
