AndrewWalsh/at-your-service

View on GitHub
src/lib/get-path-to-store-route.test.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { test, expect } from "vitest";

import getPathToStoreRoute from "./get-path-to-store-route";

test("converts string into expected format", async () => {
  const result = getPathToStoreRoute("host/path/name/method/status");
  expect(result).toEqual(["host", "path/name", "method", "status"]);
});