projects
/
squeep-authentication-module
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update devDependencies, clean up lint issues
[squeep-authentication-module]
/
test
/
lib
/
template
/
otp-html.js
diff --git
a/test/lib/template/otp-html.js
b/test/lib/template/otp-html.js
index 5aa3d8bc6a812b04214f8139090e4ece5a882f3d..cdfcc0d4247ec94d83503bad3cdef076736332d6 100644
(file)
--- a/
test/lib/template/otp-html.js
+++ b/
test/lib/template/otp-html.js
@@
-1,7
+1,6
@@
-/* eslint-env mocha */
'use strict';
'use strict';
-const assert = require('assert');
+const assert = require('
node:
assert');
const { OTPHTML } = require('../../../lib/template');
const lintHtml = require('../../lint-html');
const { OTPHTML } = require('../../../lib/template');
const lintHtml = require('../../lint-html');
@@
-22,16
+21,17
@@
describe('Template OTPHTML', function () {
};
});
};
});
- it('renders', function () {
+ it('renders',
async
function () {
ctx.errors = ['an error', 'another error'];
const result = OTPHTML(ctx, options);
ctx.errors = ['an error', 'another error'];
const result = OTPHTML(ctx, options);
- lintHtml(result);
+
await
lintHtml(result);
assert(result);
});
assert(result);
});
- it('covers empty error', function () {
+ it('covers empty error', async function () {
+ delete options.authenticator.otpBlurb;
const result = OTPHTML(ctx, options);
const result = OTPHTML(ctx, options);
- lintHtml(result);
+
await
lintHtml(result);
assert(result);
});
assert(result);
});