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

27 lines
625 B
JavaScript

'use strict'
const Joi = require('@hapi/joi')
const t = (module.exports = require('../tester').createServiceTester())
t.create('existing key fingerprint')
.get('/skyplabs.json')
.expectBadge({
label: 'pgp',
message: Joi.string().hex().length(16),
})
t.create('unknown username').get('/skyplabsssssss.json').expectBadge({
label: 'pgp',
message: 'profile not found',
})
t.create('invalid username').get('/s.json').expectBadge({
label: 'pgp',
message: 'invalid username',
})
t.create('missing key fingerprint').get('/skyp.json').expectBadge({
label: 'pgp',
message: 'no key fingerprint found',
})