File tree 2 files changed +32
-2
lines changed
2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
3
+ exports [` module > analyzeModule() > ModuleDeprecationTest 1` ] = `
4
+ {
5
+ " comment" : " This is a description for a module with a code example." ,
6
+ " deprecated" : " Well, this is deprecated." ,
7
+ " examples" : undefined ,
8
+ }
9
+ ` ;
10
+
3
11
exports [` module > analyzeModule() > ModuleExampleTest 1` ] = `
4
12
{
5
- " comment" : " This is a description for a module with a code example" ,
13
+ " comment" : " This is a description for a module with a code example. " ,
6
14
" deprecated" : undefined ,
7
15
" examples" : " <div class=\\ " language - ts \\" ><button title=\\ " Copy Code \\" class=\\ " copy \\" ></button><span class=\\ " lang \\" >ts</span><pre v-pre class=\\ " shiki material - theme - palenight \\" ><code><span class=\\ " line \\" ><span style=\\ " color :#89DDFF \\" >new</span><span style=\\ " color :#BABED8 \\" > </span><span style=\\ " color :#82AAFF \\" >ModuleExampleTest</span><span style=\\ " color :#BABED8 \\" >()</span></span></code></pre>
8
16
< / div > " ,
@@ -27,10 +35,20 @@ and [api docs](/api/).",
27
35
}
28
36
` ;
29
37
38
+ exports [` module > analyzeModule() > ModuleSimpleTest 1` ] = `
39
+ {
40
+ " comment" : " A simple module without anything special." ,
41
+ " deprecated" : undefined ,
42
+ " examples" : undefined ,
43
+ }
44
+ ` ;
45
+
30
46
exports [` module > analyzeModule() > expected and actual modules are equal 1` ] = `
31
47
[
48
+ "ModuleDeprecationTest",
32
49
"ModuleExampleTest",
33
50
"ModuleFakerJsLinkTest",
34
51
"ModuleNextFakerJsLinkTest",
52
+ "ModuleSimpleTest",
35
53
]
36
54
` ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * A simple module without anything special.
3
+ */
4
+ export class ModuleSimpleTest { }
5
+
1
6
/**
2
7
* Description with a link to our [website](https://fakerjs.dev/)
3
8
* and [api docs](https://fakerjs.dev/api/).
@@ -11,7 +16,14 @@ export class ModuleFakerJsLinkTest {}
11
16
export class ModuleNextFakerJsLinkTest { }
12
17
13
18
/**
14
- * This is a description for a module with a code example
19
+ * This is a description for a module with a code example.
20
+ *
21
+ * @deprecated Well, this is deprecated.
22
+ */
23
+ export class ModuleDeprecationTest { }
24
+
25
+ /**
26
+ * This is a description for a module with a code example.
15
27
*
16
28
* @example
17
29
* new ModuleExampleTest()
You can’t perform that action at this time.
0 commit comments