1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00
shields/services/check-services.spec.js
chris48s 388459a8ca
fail to start server if there are duplicate service names (#9099)
* fail to start server if there are duplicate service names

* update class names in loader test fixtures

---------

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2023-05-01 18:07:13 +00:00

17 lines
440 B
JavaScript

import {
loadServiceClasses,
collectDefinitions,
} from '../core/base-service/loader.js'
// When these tests fail, they will throw AssertionErrors. Wrapping them in an
// `expect().not.to.throw()` makes the error output unreadable.
it('Services have unique names', async function () {
this.timeout(30000)
await loadServiceClasses()
})
it('Can collect the service definitions', async function () {
await collectDefinitions()
})