Nstonehouse/refactoring/karma config