发布 0.2.1 并完善工具边界与安全性
This commit is contained in:
@@ -25,4 +25,11 @@ describe('tool catalog consistency', () => {
|
||||
expect(navigationToolIds.sort()).toEqual(catalog.tools.map(({ id }) => id).sort())
|
||||
expect(new Set(navigationToolIds).size).toBe(navigationToolIds.length)
|
||||
})
|
||||
|
||||
it('places checksum tools before cryptographic tools by default', () => {
|
||||
const categoryIds = defaultNavigation.categories.map(({ id }) => id)
|
||||
expect(categoryIds.indexOf('checksum')).toBeGreaterThanOrEqual(0)
|
||||
expect(categoryIds.indexOf('crypto')).toBeGreaterThanOrEqual(0)
|
||||
expect(categoryIds.indexOf('checksum')).toBeLessThan(categoryIds.indexOf('crypto'))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user