lib/momentum.test.js
File momentum.test.js
has 483 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
describe('Momentum', function () {
beforeEach(function () {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;
});
it('should be available on window', function () {
Function offCollection
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var offCollection = animals.onChange(function (event) {
/* istanbul ignore else */
if (event.item.name === dog) {
offCollection();
expect(event.item.name).toBe(dog);
Function end
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var end = function () {
if (first) {
first = false;
return;