@moj-bichard7-developers/bichard7-next-data 2.0.19 → 2.0.20
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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { offenceCategory, offenceCode } from "../index"
|
|
2
|
+
|
|
3
|
+
describe("offence-code.json", () => {
|
|
4
|
+
// Skipping because there are bad offence categories in the data from the legacy NRCs.
|
|
5
|
+
// We're aware of this and investigating removing the legacy NRCs all together.
|
|
6
|
+
it.skip("should reference only offence categories in offence-category.json", () => {
|
|
7
|
+
const validCategoryCodes = offenceCategory.map((category) => category.cjsCode)
|
|
8
|
+
|
|
9
|
+
offenceCode.forEach((code) => {
|
|
10
|
+
expect(validCategoryCodes).toContain(code.offenceCategory)
|
|
11
|
+
})
|
|
12
|
+
})
|
|
13
|
+
})
|