فهرست منبع

add depth-utils.spec.ts

Yuki Takei 3 سال پیش
والد
کامیت
6cd5ed5395
1فایلهای تغییر یافته به همراه13 افزوده شده و 0 حذف شده
  1. 13 0
      packages/remark-lsx/src/utils/depth-utils.spec.ts

+ 13 - 0
packages/remark-lsx/src/utils/depth-utils.spec.ts

@@ -0,0 +1,13 @@
+import { getDepthOfPath } from './depth-utils';
+
+describe('getDepthOfPath()', () => {
+
+  it('returns 0 when the path does not include slash', () => {
+    // when
+    const result = getDepthOfPath('Sandbox');
+
+    // then
+    expect(result).toBe(0);
+  });
+
+});