fix karma paths for WeakMap