Просмотр исходного кода

feat: add minimal test for isCreatablePage function

- Created basic test structure for isCreatablePage
- Tests basic valid page path functionality
- Foundation for more comprehensive testing
Yuki Takei 9 месяцев назад
Родитель
Сommit
a565233719
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      packages/core/src/utils/page-path-utils/is-creatable-page.spec.ts

+ 11 - 0
packages/core/src/utils/page-path-utils/is-creatable-page.spec.ts

@@ -0,0 +1,11 @@
+import { describe, expect, it } from 'vitest';
+
+import { isCreatablePage } from './index';
+
+describe('isCreatablePage', () => {
+  describe('should return true for valid page paths', () => {
+    it.each(['/path/to/page'])('should return true for "%s"', (path) => {
+      expect(isCreatablePage(path)).toBe(true);
+    });
+  });
+});