generated from Seekra/repository-template
test(style): add describe to cssDimensions test
This commit is contained in:
@@ -14,9 +14,10 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { expect, test } from 'vitest';
|
import { describe, expect, test } from 'vitest';
|
||||||
import { ensureUnit } from '../cssDimensions';
|
import { ensureUnit } from '../cssDimensions';
|
||||||
|
|
||||||
|
describe('cssDimensions', () => {
|
||||||
test.for([
|
test.for([
|
||||||
{ dimension: null, expected: '0px' },
|
{ dimension: null, expected: '0px' },
|
||||||
{ dimension: undefined, expected: '0px' },
|
{ dimension: undefined, expected: '0px' },
|
||||||
@@ -120,3 +121,4 @@ test.for([
|
|||||||
])('ensureUnit returns $expected with input $dimension', ({ dimension, expected }) => {
|
])('ensureUnit returns $expected with input $dimension', ({ dimension, expected }) => {
|
||||||
expect(ensureUnit(dimension)).toBe(expected);
|
expect(ensureUnit(dimension)).toBe(expected);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user