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 368e702 commit 8783590Copy full SHA for 8783590
node-tests/index.mjs
@@ -24,6 +24,16 @@ describe('Json Tests', function () {
24
`You don't need to define a displayId if it's the same as the file name`
25
);
26
}
27
+
28
+ // since is manditory and must be a string
29
+ if (typeof contents.since !== 'string') {
30
+ throw new Error('since frontmatter must be a string');
31
+ }
32
33
+ // if you define an until then it must be a string
34
+ if (contents.until && typeof contents.until !== 'string') {
35
+ throw new Error('until frontmatter must be a string');
36
37
});
38
39
0 commit comments