Yuki Takei 2 лет назад
Родитель
Сommit
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);
+  });
+
+});