astro-ghostcms/.pnpm-store/v3/files/16/e76650066832203d5918f086b94...

13 lines
306 B
Plaintext

import getVersionRangeType from "./";
test.each([
["^1.0.0", "^"],
["~1.0.0", "~"],
[">=1.0.0", ">="],
["<=1.0.0", "<="],
[">1.0.0", ">"],
["1.0.0", ""],
])('getVersionRangeType should return "%s" if passed "%s"', (input, output) => {
expect(getVersionRangeType(input)).toEqual(output);
});