feat(anatomy): before/after review drawings per view, questions of every level in the report, tests on the real changeset
This commit is contained in:
1 parent
6870d87910
commit
1a96a1555c
7 files changed
+348
-10
No files matched your search
@@ -46,9 +46,7 @@ describe('equine working draft (real sources + committed curation)', () => {
|
||||
expect(draft.sheetId).toBe(result.sheetId)
|
||||
})
|
||||
|
||||
it('keeps the catalog volumes and carries one drawing', () => {
|
||||
expect(draft.statsAfter.nodes).toBe(draft.statsBefore.nodes)
|
||||
expect(draft.statsAfter.leaves).toBe(draft.statsBefore.leaves)
|
||||
it('carries one drawing and the curated content', () => {
|
||||
expect(draft.statsBefore.assets).toBe(2)
|
||||
expect(draft.statsAfter.assets).toBe(1)
|
||||
expect(draft.assets).toHaveLength(1)
|
||||
@@ -62,13 +60,22 @@ describe('equine working draft (real sources + committed curation)', () => {
|
||||
(r) => r.code === 'Cd',
|
||||
)
|
||||
expect(cd!.count_range).toEqual({ min: 15, max: 21 })
|
||||
// Carpus zone added, linked from its annotation (CHG carpus_zone).
|
||||
const carpus = draft.document.annotations.find((a) => a.id === 'carpus')
|
||||
expect(carpus).toMatchObject({ finding_zone_id: 'carpus', kind: 'point' })
|
||||
expect(draft.document.finding_zones.some((z) => z.id === 'carpus')).toBe(
|
||||
true,
|
||||
)
|
||||
// Node volume: 792 legacy − SSB duplicates − absent sutures + carpus & flags.
|
||||
expect(draft.statsAfter.nodes).toBe(811)
|
||||
expect(draft.statsAfter.descriptionsFrOnly).toBe(0)
|
||||
})
|
||||
|
||||
it('lists CHG-000 and CHG-001 in the CHANGELOG', () => {
|
||||
it('lists CHG-000 and the Cd range change in the CHANGELOG', () => {
|
||||
const changelog = artifacts['CHANGELOG.md']!
|
||||
expect(changelog).toContain('## Comparaison quantitative')
|
||||
expect(changelog).toMatch(/\| `CHG-000` .*`view:head\.view_box`/)
|
||||
expect(changelog).toMatch(/\| `CHG-001` .*`region:Cd\.count_range`/)
|
||||
expect(changelog).toMatch(/\| `CHG-\d{3}` .*`region:Cd\.count_range`/)
|
||||
})
|
||||
|
||||
it('writes the ten review sections in order', () => {
|
||||
|
||||
Reference in new issue
Block a user