From 4a313c743e55220ad46322ccbda49c5ad5062277 Mon Sep 17 00:00:00 2001 From: Jonas Schade Date: Wed, 15 Nov 2023 11:01:05 +0100 Subject: [PATCH] test: :pencil2: update test descriptions --- test/toDirection.test.ts | 2 +- test/toFlexDirection.test.ts | 2 +- test/toFlexWrap.test.ts | 2 +- test/toWritingMode.test.ts | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/toDirection.test.ts b/test/toDirection.test.ts index b933639..485dfcd 100644 --- a/test/toDirection.test.ts +++ b/test/toDirection.test.ts @@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest'; import { toDirection } from '../src'; describe('toDirection', () => { - it('should return ltr for invalid values', () => { + it('should return "ltr" for invalid values', () => { expect(toDirection('blub')).toBe('ltr'); }); it('should accept "rtl"', () => { diff --git a/test/toFlexDirection.test.ts b/test/toFlexDirection.test.ts index bfa6226..9981f5d 100644 --- a/test/toFlexDirection.test.ts +++ b/test/toFlexDirection.test.ts @@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest'; import { toFlexDirection } from '../src'; describe('toFlexDirection', () => { - it('should return row for invalid values', () => { + it('should return "row" for invalid values', () => { expect(toFlexDirection('blub')).toBe('row'); }); it('should accept "row"', () => { diff --git a/test/toFlexWrap.test.ts b/test/toFlexWrap.test.ts index 70e366d..2e2be65 100644 --- a/test/toFlexWrap.test.ts +++ b/test/toFlexWrap.test.ts @@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest'; import { toFlexWrap } from '../src'; describe('toFlexWrap', () => { - it('should return nowrap for invalid values', () => { + it('should return "nowrap" for invalid values', () => { expect(toFlexWrap('blub')).toBe('nowrap'); }); it('should accept "nowrap"', () => { diff --git a/test/toWritingMode.test.ts b/test/toWritingMode.test.ts index b37fba9..6fa2d37 100644 --- a/test/toWritingMode.test.ts +++ b/test/toWritingMode.test.ts @@ -14,13 +14,13 @@ describe('toWritingMode', () => { it('should return "horizontal-tb" for "rl"', () => { expect(toWritingMode('rl')).toBe('horizontal-tb'); }); - it('should return "horizontal-tb" for "tb"', () => { + it('should return "vertical-lr" for "tb"', () => { expect(toWritingMode('tb')).toBe('vertical-lr'); }); - it('should return "horizontal-tb" for "tb-lr"', () => { + it('should return "vertical-lr" for "tb-lr"', () => { expect(toWritingMode('tb-lr')).toBe('vertical-lr'); }); - it('should return "horizontal-tb" for "tb-rl"', () => { + it('should return "vertical-rl" for "tb-rl"', () => { expect(toWritingMode('tb-rl')).toBe('vertical-rl'); }); it('should accept "horizontal-tb"', () => {