Skip to content

Commit

Permalink
test(prisma): improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Jul 8, 2024
1 parent dfa942b commit 3302883
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
import {parseDocumentationAttributes} from "./parseDocumentationAttributes.js";

describe("parseDocumentationAttributes", () => {
it('should parse @TsED.Groups(type: "test", fix: "other")', () => {
expect(parseDocumentationAttributes('/// @TsED.Groups(type: "test", fix: "other")')).toEqual([
{
arguments: [
{
type: "test",
fix: "other"
}
],
content: '@TsED.Groups(type: "test", fix: "other")',
name: "Groups"
}
]);
});
it("should ignore undefined comment", () => {
expect(parseDocumentationAttributes(undefined)).toEqual([]);
});
Expand Down

0 comments on commit 3302883

Please sign in to comment.