@living-architecture/riviere-schema 0.4.6 → 0.4.7
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 +1 -1
- package/src/schema.spec.ts +3 -3
package/package.json
CHANGED
package/src/schema.spec.ts
CHANGED
|
@@ -99,7 +99,7 @@ describe('parseRiviereGraph()', () => {
|
|
|
99
99
|
links: [],
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
expect(() => parseRiviereGraph(input)).toThrow()
|
|
102
|
+
expect(() => parseRiviereGraph(input)).toThrow(/Invalid RiviereGraph/)
|
|
103
103
|
})
|
|
104
104
|
|
|
105
105
|
it('throws on missing required field with error details', () => {
|
|
@@ -116,7 +116,7 @@ describe('parseRiviereGraph()', () => {
|
|
|
116
116
|
links: [],
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
expect(() => parseRiviereGraph(input)).toThrow(/Invalid RiviereGraph/)
|
|
119
|
+
expect(() => parseRiviereGraph(input)).toThrow(/version|Invalid RiviereGraph/i)
|
|
120
120
|
})
|
|
121
121
|
|
|
122
122
|
it('throws on invalid version format', () => {
|
|
@@ -134,7 +134,7 @@ describe('parseRiviereGraph()', () => {
|
|
|
134
134
|
links: [],
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
expect(() => parseRiviereGraph(input)).toThrow()
|
|
137
|
+
expect(() => parseRiviereGraph(input)).toThrow(/Invalid RiviereGraph/)
|
|
138
138
|
})
|
|
139
139
|
})
|
|
140
140
|
|