When installing grunt-karma npm install grunt-karma --save-dev it install karma^1.0.0 with it. And that breaks the tests:
Warning: .then() only accepts functions but was passed: [object Undefined], [object Undefined]...
It's true that while installing grunt-karma I get the following npm WARN message:
npm WARN peerDependencies The peer dependency grunt@>=0.4.x included from grunt-karma will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN peerDependencies The peer dependency karma@^0.13.0 || >= 0.14.0-rc.0 included from grunt-karma will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN optional dep failed, continuing [email protected]
But my npm version is 2.14.20