mirror of
https://github.com/badges/shields.git
synced 2025-04-18 19:44:04 +03:00
* 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>
17 lines
440 B
JavaScript
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()
|
|
})
|