@@ -5,12 +5,44 @@ import { OpenapiElement } from '../../../../src/index.ts';
5
5
6
6
describe ( 'refractor' , function ( ) {
7
7
context ( 'elements' , function ( ) {
8
- context ( 'OpenapiElement' , function ( ) {
8
+ context ( 'OpenapiElement 3.0.0' , function ( ) {
9
+ specify ( 'should refract to semantic ApiDOM tree' , function ( ) {
10
+ const openapiElement = OpenapiElement . refract ( '3.0.0' ) ;
11
+
12
+ expect ( sexprs ( openapiElement ) ) . toMatchSnapshot ( ) ;
13
+ } ) ;
14
+ } ) ;
15
+
16
+ context ( 'OpenapiElement 3.0.1' , function ( ) {
17
+ specify ( 'should refract to semantic ApiDOM tree' , function ( ) {
18
+ const openapiElement = OpenapiElement . refract ( '3.0.1' ) ;
19
+
20
+ expect ( sexprs ( openapiElement ) ) . toMatchSnapshot ( ) ;
21
+ } ) ;
22
+ } ) ;
23
+
24
+ context ( 'OpenapiElement 3.0.2' , function ( ) {
25
+ specify ( 'should refract to semantic ApiDOM tree' , function ( ) {
26
+ const openapiElement = OpenapiElement . refract ( '3.0.2' ) ;
27
+
28
+ expect ( sexprs ( openapiElement ) ) . toMatchSnapshot ( ) ;
29
+ } ) ;
30
+ } ) ;
31
+
32
+ context ( 'OpenapiElement 3.0.3' , function ( ) {
9
33
specify ( 'should refract to semantic ApiDOM tree' , function ( ) {
10
34
const openapiElement = OpenapiElement . refract ( '3.0.3' ) ;
11
35
12
36
expect ( sexprs ( openapiElement ) ) . toMatchSnapshot ( ) ;
13
37
} ) ;
14
38
} ) ;
39
+
40
+ context ( 'OpenapiElement 3.0.4' , function ( ) {
41
+ specify ( 'should refract to semantic ApiDOM tree' , function ( ) {
42
+ const openapiElement = OpenapiElement . refract ( '3.0.4' ) ;
43
+
44
+ expect ( sexprs ( openapiElement ) ) . toMatchSnapshot ( ) ;
45
+ } ) ;
46
+ } ) ;
15
47
} ) ;
16
48
} ) ;
0 commit comments