Skip to content

Commit cb19287

Browse files
committed
Add column tests
1 parent e5907ab commit cb19287

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/ColumnTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,25 @@ public function it_allows_orthogonal_data()
169169

170170
$this->assertEquals($expected, $column->data);
171171
}
172+
173+
/** @test */
174+
public function it_has_responsive_priority()
175+
{
176+
$column = Column::make('name');
177+
$column->responsivePriority(1);
178+
179+
$this->assertEquals(1, $column->responsivePriority);
180+
}
181+
182+
/** @test */
183+
public function it_can_add_class()
184+
{
185+
$column = Column::make('name')->className('text-sm');
186+
$this->assertEquals('text-sm', $column->className);
187+
188+
$column->addClass('font-bold');
189+
$this->assertEquals('text-sm font-bold', $column->className);
190+
}
191+
192+
172193
}

0 commit comments

Comments
 (0)