Skip to content

Commit c523823

Browse files
committed
chore: leftovers
1 parent a1d700a commit c523823

File tree

6 files changed

+101
-97
lines changed

6 files changed

+101
-97
lines changed

src/__fixtures__/ref/original.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"definitions": {
4+
"address": {
5+
"type": "object",
6+
"properties": {
7+
"street_address": {
8+
"type": "string"
9+
},
10+
"city": {
11+
"type": "string"
12+
},
13+
"state": {
14+
"type": "string"
15+
}
16+
},
17+
"required": [
18+
"street_address",
19+
"city",
20+
"state"
21+
]
22+
}
23+
},
24+
"type": "object",
25+
"properties": {
26+
"billing_address": {
27+
"$ref": "#/definitions/address"
28+
},
29+
"shipping_address": {
30+
"$ref": "#/definitions/address"
31+
}
32+
}
33+
}

src/__fixtures__/ref/original.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/__fixtures__/ref/resolved.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"definitions": {
4+
"address": {
5+
"type": "object",
6+
"properties": {
7+
"street_address": {
8+
"type": "string"
9+
},
10+
"city": {
11+
"type": "string"
12+
},
13+
"state": {
14+
"type": "string"
15+
}
16+
},
17+
"required": [
18+
"street_address",
19+
"city",
20+
"state"
21+
]
22+
}
23+
},
24+
"type": "object",
25+
"properties": {
26+
"billing_address": {
27+
"type": "object",
28+
"properties": {
29+
"street_address": {
30+
"type": "string"
31+
},
32+
"city": {
33+
"type": "string"
34+
},
35+
"state": {
36+
"type": "string"
37+
}
38+
},
39+
"required": [
40+
"street_address",
41+
"city",
42+
"state"
43+
]
44+
},
45+
"shipping_address": {
46+
"type": "object",
47+
"properties": {
48+
"street_address": {
49+
"type": "string"
50+
},
51+
"city": {
52+
"type": "string"
53+
},
54+
"state": {
55+
"type": "string"
56+
}
57+
},
58+
"required": [
59+
"street_address",
60+
"city",
61+
"state"
62+
]
63+
}
64+
}
65+
}

src/__fixtures__/ref/resolved.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/components/__tests__/JsonSchemaViewer.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import 'jest-enzyme';
33
import * as React from 'react';
44

55
import { JSONSchema4 } from 'json-schema';
6-
import { JsonSchemaViewerComponent, SchemaTree } from '../components';
7-
import { isSchemaViewerEmpty } from '../utils/isSchemaViewerEmpty';
6+
import { JsonSchemaViewerComponent, SchemaTree } from '../../components';
7+
import { isSchemaViewerEmpty } from '../../utils/isSchemaViewerEmpty';
88

9-
jest.mock('../utils/isSchemaViewerEmpty');
9+
jest.mock('../../utils/isSchemaViewerEmpty');
1010

1111
const schema: JSONSchema4 = {
1212
properties: {

src/components/index.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)