Browse Source

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 11 months ago
parent
commit
a565233719
1 changed files with 11 additions and 0 deletions
  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);
+    });
+  });
+});