Files
shields/services/bit/bit-components.tester.js
Guy Saar d3ec64c789 [Bit] add bit components count service (#3338)
* [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
2019-04-23 06:54:51 -05:00

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' })