blade('quota'); expect($html) ->toContain('data-md-stat') ->toContain('Shares') ->toContain('data-md-stat-value') ->toContain('x-figure>1,204

') ->toContain('data-md-stat-description') ->toContain('12 this week') ->toContain('data-md-stat-extra') ->toContain('quota') ->toContain('and(ComponentStylesheet::read('stat')->declarations('[data-md-stat]'))->toMatchArray([ 'background-color' => 'var(--md-sys-color-surface-container)', 'border-radius' => 'var(--md-sys-shape-corner-lg)', ]) ->and(ComponentStylesheet::read('stat')->declarations('[data-md-stat-value]'))->toMatchArray([ 'font' => 'var(--md-sys-typescale-emphasized-headline-md)', 'font-variant-numeric' => 'tabular-nums', ]); }); it('leaves out the description and slot when there is neither', function () { $html = (string) $this->blade(''); expect($html) ->not->toContain('data-md-stat-description') ->not->toContain('data-md-stat-extra'); });