<commit_before>import { Component } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SprkButtonDirective } from './sprk-button.directive';
import { SprkSpinnerDirective } from '../sprk-spinner/sprk-spinner.directive';

@Component({
  selector: 'sprk-test',
  template: `
    <button sprkButton>Test 1</button>
    <!-- TODO: Remove spinning functionality from button on next release #3561 -->
    <button sprkButton [isSpinning]="true">Test 2</button>
    <!-- TODO: Remove spinning functionality from button on next release #3561 -->
    <button
      sprkButton
      variant="secondary"
      analyticsString="test"
      idString="id-test"
      [isSpinning]="spinnerVal"
    >
      Test 3
    </button>
    <button class="sprk-c-Button--tertiary" sprkButton>Test 4</button>
    <!-- TODO: Remove spinning functionality from button on next release #3561 -->
    <button
      sprkButton
      variant="tertiary"
      spinningAriaLabel="custom"
      [isSpinning]="spinnerVal"
    >
      Test 5
    </button>
    <!-- TODO: Remove spinning functionality from button on next release #3561 -->
    <button sprkButton variant="quaternary" [isSpinning]="spinnerVal">
      Test 6
    </button>
    <!-- TODO: Change this test is for checking if new spinner directive is being used in the tests #3561 -->
    <button sprkButton additionalClasses="testClass" [isSpinning]="true">
      <div sprkSpinner></div>
    </button>
  `,
})
class TestComponent {
  spinnerVal = false;
}

describe('Spark Button Directive', () => {
  let component: TestComponent;
  let fixture: ComponentFixture<TestComponent>;
  let button1Element: HTMLElement;
  let button2Element: HTMLElement;
  let button3Element: HTMLElement;
  let button4Element: HTMLElement;
  let button5Element: HTMLElement;
  let button6Element: HTMLElement;
  // TODO: Remove this test is for checking if new spinner directive is being used #3561
  let button7Element: HTMLElement;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [SprkButtonDirective, SprkSpinnerDirective, TestComponent],
    }).compileComponents();

    fixture = TestBed.createComponent(TestComponent);
    component = fixture.componentInstance;

    fixture.detectChanges();
    button1Element = fixture.nativeElement.querySelectorAll('button')[0];
    button2Element = fixture.nativeElement.querySelectorAll('button')[1];
    button3Element = fixture.nativeElement.querySelectorAll('button')[2];
    button4Element = fixture.nativeElement.querySelectorAll('button')[3];
    button5Element = fixture.nativeElement.querySelectorAll('button')[4];
    button6Element = fixture.nativeElement.querySelectorAll('button')[5];
    // TODO: Remove this test is for checking if new spinner directive is being used #3561
    button7Element = fixture.nativeElement.querySelectorAll('button')[6];
  }));<commit_msg>Remove unecessary deprecation notes<commit_after>import { Component } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SprkButtonDirective } from './sprk-button.directive';
import { SprkSpinnerDirective } from '../sprk-spinner/sprk-spinner.directive';

@Component({
  selector: 'sprk-test',
  template: `
    <button sprkButton>Test 1</button>
    <!-- TODO: Remove spinning functionality from button on next release #3561 -->
    <button sprkButton [isSpinning]="true">Test 2</button>
    <!-- TODO: Remove spinning functionality from button on next release #3561 -->
    <button
      sprkButton
      variant="secondary"
      analyticsString="test"
      idString="id-test"
      [isSpinning]="spinnerVal"
    >
      Test 3
    </button>
    <button class="sprk-c-Button--tertiary" sprkButton>Test 4</button>
    <!-- TODO: Remove spinning functionality from button on next release #3561 -->
    <button
      sprkButton
      variant="tertiary"
      spinningAriaLabel="custom"
      [isSpinning]="spinnerVal"
    >
      Test 5
    </button>
    <!-- TODO: Remove spinning functionality from button on next release #3561 -->
    <button sprkButton variant="quaternary" [isSpinning]="spinnerVal">
      Test 6
    </button>
    <button sprkButton additionalClasses="testClass" [isSpinning]="true">
      <div sprkSpinner></div>
    </button>
  `,
})
class TestComponent {
  spinnerVal = false;
}

describe('Spark Button Directive', () => {
  let component: TestComponent;
  let fixture: ComponentFixture<TestComponent>;
  let button1Element: HTMLElement;
  let button2Element: HTMLElement;
  let button3Element: HTMLElement;
  let button4Element: HTMLElement;
  let button5Element: HTMLElement;
  let button6Element: HTMLElement;
  // TODO: Remove this test is for checking if new spinner directive is being used #3561
  let button7Element: HTMLElement;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [SprkButtonDirective, SprkSpinnerDirective, TestComponent],
    }).compileComponents();

    fixture = TestBed.createComponent(TestComponent);
    component = fixture.componentInstance;

    fixture.detectChanges();
    button1Element = fixture.nativeElement.querySelectorAll('button')[0];
    button2Element = fixture.nativeElement.querySelectorAll('button')[1];
    button3Element = fixture.nativeElement.querySelectorAll('button')[2];
    button4Element = fixture.nativeElement.querySelectorAll('button')[3];
    button5Element = fixture.nativeElement.querySelectorAll('button')[4];
    button6Element = fixture.nativeElement.querySelectorAll('button')[5];
    button7Element = fixture.nativeElement.querySelectorAll('button')[6];
  }));
{'fraction_non_alphanumeric': 0.11888358947182477, 'fraction_numerical': 0.018018018018018018, 'mean_word_length': 4.175502742230347, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 50, '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': '6821062', 'n_tokens_mistral': 1660, 'n_tokens_neox': 1630, 'n_words': 394}