mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 18:07:42 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user