Skip to content

Commit

Permalink
fix(): fix build errors (#287)
Browse files Browse the repository at this point in the history
* Revert to PAT due to semantic-release-pages plugin not supporting GITHUB_TOKEN yet

* Initial Staff Table

* Matches with hard coded data.

* fix build failure

* fix build failure

* fix build failure

* fix test failure

---------

Signed-off-by: Timothy Walshjamin <walshta@users.noreply.github.com>
  • Loading branch information
walshta committed Jun 1, 2024
1 parent 342626f commit 5802ae9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
12 changes: 10 additions & 2 deletions src/app/home/match-table/match-table.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { MatchTableComponent } from './match-table.component';
import {provideHttpClient} from "@angular/common/http";
import {provideHttpClientTesting} from "@angular/common/http/testing";
import {MatchService} from "../../service/match.service";

describe('MatchTableComponent', () => {
let component: MatchTableComponent;
let fixture: ComponentFixture<MatchTableComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [MatchTableComponent]
imports: [MatchTableComponent],
providers: [
provideHttpClient(),
provideHttpClientTesting(),
MatchService
],
})
.compileComponents();

fixture = TestBed.createComponent(MatchTableComponent);
component = fixture.componentInstance;
fixture.detectChanges();
Expand Down
8 changes: 5 additions & 3 deletions src/app/home/match-table/match-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export class MatchTableComponent implements AfterViewInit {
displayedColumns: string[] = ['student', 'org', 'donor', 'address', 'donation'];
matches: Match[] = [];

constructor() { }

ngAfterViewInit(): void {
constructor() {
this.matches = [
{id: 1, studentName: 'Daphne Vasilakis', studentSection: 'Red', studentGroup: 'A', donorOrg: '', donorName: 'Nyree Hidalgo', donorAddress: '142 Main Street Goshen, NY 10924', donation: '225'},
{id: 2, studentName: 'Daphne Vasilakis', studentSection: 'Red', studentGroup: 'A', donorOrg: 'Persico True Value', donorName: 'Gao Shen', donorAddress: 'PO Box 1118 Pine Bush, NY 12566', donation: '112.5'},
Expand Down Expand Up @@ -416,4 +414,8 @@ export class MatchTableComponent implements AfterViewInit {
{id: 376, studentName: 'Shaya Gerber', studentSection: 'Pink', studentGroup: 'U', donorOrg: '', donorName: '', donorAddress: '', donation: ''}
]
}

ngAfterViewInit(): void {

}
}

0 comments on commit 5802ae9

Please sign in to comment.