diff --git a/src/assert-valid-package-name.test.ts b/src/assert-valid-package-name.test.ts new file mode 100644 index 0000000..e913bda --- /dev/null +++ b/src/assert-valid-package-name.test.ts @@ -0,0 +1,8 @@ +import { expect, test } from "vitest"; +import { assertValidPackageName } from "./assert-valid-package-name"; + +test("assertValidPackageName", () => { + expect(() => assertValidPackageName("")).toThrow(); + expect(() => assertValidPackageName("foo")).not.toThrow(); + expect(() => assertValidPackageName("@foo/bar")).not.toThrow(); +});