<commit_before>import 'script!jquery/dist/jquery';
import angular from 'angular';
import {products} from './products.js';

describe('the products page', () => {
  let $scope;
  let $location;
  let $state;

  let element;
  let $ = window.$;

  let buildTemplate = () => {
    return angular.element('<products></products>');
  };

  beforeEach(window.module('ui.router'));
  beforeEach(window.module(products.name));

  beforeEach(window.inject((
  $rootScope, $compile, _$state_, _$location_) => {
    $scope = $rootScope.$new();
    $state = _$state_;
    $location = _$location_;

    element = $compile(buildTemplate())($scope);
    $scope.$digest();
  }));



  it('/#products in the url', () => {
    $location.path('/products');
    $scope.$apply();

    ($state.current.url).should.equal('/products');
    ($state.current.name).should.equal('products');
  });

});<commit_msg>purge lint violations in products.spec.js<commit_after>import 'script!jquery/dist/jquery';
import {products} from './products.js';

describe('the products page', () => {
  let $scope;
  let $location;
  let $state;

  beforeEach(window.module('ui.router'));
  beforeEach(window.module(products.name));

  beforeEach(window.inject(($rootScope, _$state_, _$location_) => {
    $scope = $rootScope.$new();
    $state = _$state_;
    $location = _$location_;

    $scope.$digest();
  }));

  it('/#products in the url', () => {
    $location.path('/products');
    $scope.$apply();

    ($state.current.url).should.equal('/products');
    ($state.current.name).should.equal('products');
  });
});
{'fraction_non_alphanumeric': 0.20798985415345592, 'fraction_numerical': 0.0, 'mean_word_length': 4.0095238095238095, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '924417', 'n_tokens_mistral': 513, 'n_tokens_neox': 496, 'n_words': 90}