kylekatarnls/momentum

View on GitHub
lib/momentum.test.js

Summary

Maintainability
C
1 day
Test Coverage
A
100%

File momentum.test.js has 483 lines of code (exceeds 250 allowed). Consider refactoring.
Open

describe('Momentum', function () {
    beforeEach(function () {
        jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;
    });
    it('should be available on window', function () {
Severity: Minor
Found in lib/momentum.test.js - About 7 hrs to fix

    Function offCollection has 62 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    var offCollection = animals.onChange(function (event) {
                        /* istanbul ignore else */
                        if (event.item.name === dog) {
                            offCollection();
                            expect(event.item.name).toBe(dog);
    Severity: Major
    Found in lib/momentum.test.js - About 2 hrs to fix

      Function end has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              var end = function () {
                  if (first) {
                      first = false;
      
                      return;
      Severity: Minor
      Found in lib/momentum.test.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status