diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml index b518a8cc4..e3a2fd6fd 100644 --- a/.github/workflows/angular.yml +++ b/.github/workflows/angular.yml @@ -40,5 +40,8 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Prebuild + run: pnpm --filter @lucide/angular prebuild + - name: Test run: pnpm --filter @lucide/angular test diff --git a/packages/angular/src/lucide-icon.spec.ts b/packages/angular/src/lucide-icon.spec.ts index 5e816ecc8..7067af779 100644 --- a/packages/angular/src/lucide-icon.spec.ts +++ b/packages/angular/src/lucide-icon.spec.ts @@ -85,8 +85,8 @@ describe('LucideIcon', () => { name.set('custom-name'); fixture.detectChanges(); - expect(component.iconData()).toBe(testIcon); - expect(component.iconName()).toBe('custom-name'); + expect(component['iconData']()).toBe(testIcon); + expect(component['iconName']()).toBe('custom-name'); expect(fixture.nativeElement.innerHTML).toBe( '', ); @@ -95,15 +95,15 @@ describe('LucideIcon', () => { icon.set(LucideActivity); fixture.detectChanges(); - expect(component.iconData()).toBe(LucideActivity.iconData); - expect(component.iconName()).toBe(LucideActivity.iconName); + expect(component['iconData']()).toBe(LucideActivity.iconData); + expect(component['iconName']()).toBe(LucideActivity.iconName); }); it('should support string icon name', () => { icon.set('demo'); fixture.detectChanges(); - expect(component.iconData()).toBe(testIcon); - expect(component.iconName()).toBe('demo'); + expect(component['iconData']()).toBe(testIcon); + expect(component['iconName']()).toBe('demo'); }); it('should throw error if no icon founds', () => { icon.set('invalid');