};
});
- it('renders', function () {
+ it('renders', async function () {
ctx.errors = ['an error', 'another error'];
const result = OTPHTML(ctx, options);
- lintHtml(result);
+ await lintHtml(result);
assert(result);
});
- it('covers empty error', function () {
+ it('covers empty error', async function () {
+ delete options.authenticator.otpBlurb;
const result = OTPHTML(ctx, options);
- lintHtml(result);
+ await lintHtml(result);
assert(result);
});