Files
shields/services/symfony/symfony-insight-base.spec.js
chris48s 13d75e0607 upgrade to prettier 2 (#5051)
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00

22 lines
610 B
JavaScript

'use strict'
const { expect } = require('chai')
const { NotFound } = require('..')
const { SymfonyInsightBase } = require('./symfony-insight-base')
describe('SymfonyInsightBase', function () {
context('transform()', function () {
it('throws NotFound error when there is no coverage data', function () {
try {
SymfonyInsightBase.prototype.transform({
data: { project: {} },
})
expect.fail('Expected to throw')
} catch (e) {
expect(e).to.be.an.instanceof(NotFound)
expect(e.prettyMessage).to.equal('no analyses found')
}
})
})
})