We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a55e01 commit 2ecbcf8Copy full SHA for 2ecbcf8
plugins/typescript/src/core/isVerb.test.ts
@@ -0,0 +1,15 @@
1
+import { isVerb } from "./isVerb";
2
+
3
+describe("isVerb", () => {
4
+ [
5
+ { verb: "get", expected: true },
6
+ { verb: "post", expected: true },
7
+ { verb: "patch", expected: true },
8
+ { verb: "put", expected: true },
9
+ { verb: "delete", expected: true },
10
+ { verb: "header", expected: false },
11
+ ].forEach(({ verb, expected }) =>
12
+ it(`should return ${expected} for the verb "${verb}"`, () =>
13
+ expect(isVerb(verb)).toBe(expected))
14
+ );
15
+});
0 commit comments