* [Bit] add bit components count service * [Bit] change 404 error to 'collection not found' * [Bit] remove comment * [Bit] change collection schema * [Bit] use isMetric * [Bit] replace static color to dynamic color * [BIt] change bit total components route * change scope to collection * change all scope var to collection
16 lines
411 B
JavaScript
16 lines
411 B
JavaScript
'use strict'
|
|
|
|
const t = (module.exports = require('../tester').createServiceTester())
|
|
const { isMetric } = require('../test-validators')
|
|
|
|
t.create('collection (valid)')
|
|
.get('/ramda/ramda.json')
|
|
.expectBadge({
|
|
label: 'components',
|
|
message: isMetric,
|
|
})
|
|
|
|
t.create('collection (valid)')
|
|
.get('/bit/no-collection-test.json')
|
|
.expectBadge({ label: 'components', message: 'collection not found' })
|