Skip to content

Commit 66867fc

Browse files
committed
Move reference test fixtures and fix linebreak normalization tests
1 parent dfac2f4 commit 66867fc

File tree

25 files changed

+235
-203
lines changed

25 files changed

+235
-203
lines changed

test/fixtures/dictionaries/linebreak/input1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { Dictionary } from '../../../../src/types/dictionaryTypes';
2121

2222
const output: Dictionary = {
23-
name: 'ARGO Dictionary',
23+
name: 'Test Dictionary',
2424
version: '1.2',
2525
schemas: [
2626
{

test/fixtures/dictionaries/linebreak/input2.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { Dictionary } from '../../../../src/types/dictionaryTypes';
2121

2222
const output: Dictionary = {
23-
name: 'ARGO Dictionary',
23+
name: 'Test Dictionary',
2424
version: '1.2',
2525
schemas: [
2626
{

test/fixtures/dictionaries/linebreak/output.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { Dictionary } from '../../../../src/types/dictionaryTypes';
2121

2222
const output: Dictionary = {
23-
name: 'ARGO Dictionary',
23+
name: 'Test Dictionary',
2424
version: '1.2',
2525
schemas: [
2626
{

test/functional/fixtures/references/codeList_references/input.json test/fixtures/dictionaries/references/codeList_references/input.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{
@@ -15,7 +15,7 @@
1515
"key": true
1616
},
1717
"restrictions": {
18-
"regexp": "#/ID_REG_EXP"
18+
"regex": "#/ID_REG_EXP"
1919
}
2020
},
2121
{

test/functional/fixtures/references/cyclic_references/output.json test/fixtures/dictionaries/references/codeList_references/output.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{
@@ -15,7 +15,7 @@
1515
"key": true
1616
},
1717
"restrictions": {
18-
"regexp": "^[\\w\\s\\W]{5,}$"
18+
"regex": "^[\\w\\s\\W]{5,}$"
1919
}
2020
},
2121
{

test/functional/fixtures/references/cyclic_references/input.json test/fixtures/dictionaries/references/cyclic_references/input.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{
@@ -15,7 +15,7 @@
1515
"key": true
1616
},
1717
"restrictions": {
18-
"regexp": "#/ID_REG_EXP"
18+
"regex": "#/ID_REG_EXP"
1919
}
2020
},
2121
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "Test Dictionary",
3+
"version": "1.2",
4+
"schemas": [
5+
{
6+
"name": "donor",
7+
"description": "Donor Entity",
8+
"fields": [
9+
{
10+
"name": "donor_submitter_id",
11+
"displayName": "Submitter Donor ID",
12+
"valueType": "string",
13+
"description": "Unique identifier for donor; assigned by data provider",
14+
"meta": {
15+
"key": true
16+
},
17+
"restrictions": {
18+
"regex": "^[\\w\\s\\W]{5,}$"
19+
}
20+
},
21+
{
22+
"name": "gender",
23+
"valueType": "string",
24+
"description": "Donor Biological Sex",
25+
"restrictions": {
26+
"codeList": ["Male", "Female", "Other"]
27+
}
28+
},
29+
{
30+
"name": "ethnicity",
31+
"valueType": "string",
32+
"description": "Self described",
33+
"meta": {
34+
"default": "Unknown"
35+
},
36+
"restrictions": {}
37+
}
38+
]
39+
}
40+
]
41+
}

test/functional/fixtures/references/empty_references_section/input.json test/fixtures/dictionaries/references/empty_references_section/input.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{

test/functional/fixtures/references/empty_references_section/output.json test/fixtures/dictionaries/references/empty_references_section/output.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{

test/functional/fixtures/references/no_references_section/input.json test/fixtures/dictionaries/references/no_references_section/input.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{

test/functional/fixtures/references/no_references_section/output.json test/fixtures/dictionaries/references/no_references_section/output.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{

test/functional/fixtures/references/non_existing_references/input.json test/fixtures/dictionaries/references/non_existing_references/input.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{
@@ -15,7 +15,7 @@
1515
"key": true
1616
},
1717
"restrictions": {
18-
"regexp": "#/ID_REG_EXP"
18+
"regex": "#/ID_REG_EXP"
1919
}
2020
},
2121
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "Test Dictionary",
3+
"version": "1.2",
4+
"schemas": [
5+
{
6+
"name": "donor",
7+
"description": "Donor Entity",
8+
"fields": [
9+
{
10+
"name": "donor_submitter_id",
11+
"displayName": "Submitter Donor ID",
12+
"valueType": "string",
13+
"description": "Unique identifier for donor; assigned by data provider",
14+
"meta": {
15+
"key": true
16+
},
17+
"restrictions": {
18+
"regex": "^[\\w\\s\\W]{5,}$"
19+
}
20+
},
21+
{
22+
"name": "gender",
23+
"valueType": "string",
24+
"description": "Donor Biological Sex",
25+
"restrictions": {
26+
"codeList": ["Male", "Female", "Other"]
27+
}
28+
},
29+
{
30+
"name": "ethnicity",
31+
"valueType": "string",
32+
"description": "Self described",
33+
"meta": {
34+
"default": "Unknown"
35+
},
36+
"restrictions": {}
37+
}
38+
]
39+
}
40+
]
41+
}

test/functional/fixtures/references/references_within_references/input.json test/fixtures/dictionaries/references/references_within_references/input.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{
@@ -15,7 +15,7 @@
1515
"key": true
1616
},
1717
"restrictions": {
18-
"regexp": "#/ID_REG_EXP"
18+
"regex": "#/ID_REG_EXP"
1919
}
2020
},
2121
{

test/functional/fixtures/references/references_within_references/output.json test/fixtures/dictionaries/references/references_within_references/output.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{
@@ -15,7 +15,7 @@
1515
"key": true
1616
},
1717
"restrictions": {
18-
"regexp": "^[\\w\\s\\W]{5,}$"
18+
"regex": "^[\\w\\s\\W]{5,}$"
1919
}
2020
},
2121
{

test/functional/fixtures/references/self_references/input.json test/fixtures/dictionaries/references/self_references/input.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{
@@ -15,7 +15,7 @@
1515
"key": true
1616
},
1717
"restrictions": {
18-
"regexp": "#/ID_REG_EXP"
18+
"regex": "#/ID_REG_EXP"
1919
}
2020
},
2121
{

test/functional/fixtures/references/simple_references/input.json test/fixtures/dictionaries/references/simple_references/input.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ARGO Dictionary",
2+
"name": "Test Dictionary",
33
"version": "1.2",
44
"schemas": [
55
{
@@ -15,7 +15,7 @@
1515
"key": true
1616
},
1717
"restrictions": {
18-
"regexp": "#/ID_REG_EXP"
18+
"regex": "#/ID_REG_EXP"
1919
}
2020
},
2121
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "Test Dictionary",
3+
"version": "1.2",
4+
"schemas": [
5+
{
6+
"name": "donor",
7+
"description": "Donor Entity",
8+
"fields": [
9+
{
10+
"name": "donor_submitter_id",
11+
"displayName": "Submitter Donor ID",
12+
"valueType": "string",
13+
"description": "Unique identifier for donor; assigned by data provider",
14+
"meta": {
15+
"key": true
16+
},
17+
"restrictions": {
18+
"regex": "^[\\w\\s\\W]{5,}$"
19+
}
20+
},
21+
{
22+
"name": "gender",
23+
"valueType": "string",
24+
"description": "Donor Biological Sex",
25+
"restrictions": {
26+
"codeList": ["Male", "Female", "Other"]
27+
}
28+
},
29+
{
30+
"name": "ethnicity",
31+
"valueType": "string",
32+
"description": "Self described",
33+
"meta": {
34+
"default": "Unknown"
35+
},
36+
"restrictions": {}
37+
}
38+
]
39+
}
40+
]
41+
}

test/functional/fixtures/references/codeList_references/output.json

-41
This file was deleted.

test/functional/fixtures/references/non_existing_references/output.json

-41
This file was deleted.

0 commit comments

Comments
 (0)