Make sure we apply all classes to the lucide icons (#1691)

* Make sure all classes are applied for all packages

* Add class test to angular component

* Adjust lucide-static tests

* update snapshot

* Fix types
This commit is contained in:
Eric Fennis
2023-11-24 13:59:12 +01:00
committed by GitHub
parent fbaccc7d9f
commit 75e9724072
26 changed files with 2159 additions and 558 deletions

View File

@@ -28,6 +28,12 @@ describe('LucideAngularComponent', () => {
expect(testHostComponent).toBeTruthy();
});
it('should add all classes', () => {
testHostFixture.detectChanges();
expect(getSvgAttribute('class')).toBe('lucide lucide-demo my-icon');
});
it('should set color', () => {
const color = 'red';
testHostComponent.setColor(color);
@@ -65,6 +71,7 @@ describe('LucideAngularComponent', () => {
selector: 'lucide-spec-host-component',
template: ` <i-lucide
name="demo"
class="my-icon"
[color]="color"
[size]="size"
[strokeWidth]="strokeWidth"