Explorar o código

add depth-utils.spec.ts

Yuki Takei %!s(int64=3) %!d(string=hai) anos
pai
achega
6cd5ed5395
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  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);
+  });
+
+});