@toa.io/norm 1.0.0-alpha.16 → 1.0.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/norm",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.18",
|
|
4
4
|
"description": "Toa declarations normalization and validation",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
24
|
-
"@toa.io/generic": "1.0.0-alpha.
|
|
25
|
-
"@toa.io/schema": "1.0.0-alpha.
|
|
26
|
-
"@toa.io/schemas": "1.0.0-alpha.
|
|
27
|
-
"@toa.io/yaml": "1.0.0-alpha.
|
|
23
|
+
"@toa.io/core": "1.0.0-alpha.18",
|
|
24
|
+
"@toa.io/generic": "1.0.0-alpha.18",
|
|
25
|
+
"@toa.io/schema": "1.0.0-alpha.18",
|
|
26
|
+
"@toa.io/schemas": "1.0.0-alpha.18",
|
|
27
|
+
"@toa.io/yaml": "1.0.0-alpha.18"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "94b456c37fe548e77b6ab3cd4e0fb014e2fddfa0"
|
|
30
30
|
}
|
|
@@ -112,15 +112,18 @@ describe('entity', () => {
|
|
|
112
112
|
})
|
|
113
113
|
|
|
114
114
|
it('should allow default id', () => {
|
|
115
|
-
manifest.entity.schema.properties.id = {
|
|
115
|
+
manifest.entity.schema.properties.id = {
|
|
116
|
+
type: 'string',
|
|
117
|
+
pattern: '^[a-fA-F0-9]+$'
|
|
118
|
+
}
|
|
116
119
|
expect(() => validate(manifest)).not.toThrow()
|
|
117
120
|
})
|
|
118
121
|
})
|
|
119
122
|
|
|
120
|
-
describe('
|
|
123
|
+
describe('associated', () => {
|
|
121
124
|
it('should provide default', () => {
|
|
122
125
|
expect(() => validate(manifest)).not.toThrow()
|
|
123
|
-
expect(manifest.entity.
|
|
126
|
+
expect(manifest.entity.associated).toBe(false)
|
|
124
127
|
})
|
|
125
128
|
})
|
|
126
129
|
})
|