feat: port quality, escalation, KB version, site-map KB, experiments and metrics
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
const test = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const { otpEmail } = require('../src/verification');
|
||||
|
||||
test('otp email is localized', () => {
|
||||
assert.match(otpEmail('zh', '123456').text, /验证码/);
|
||||
assert.match(otpEmail('de', '123456').text, /Bestätigungscode/);
|
||||
assert.match(otpEmail('en', '123456').text, /verification code/);
|
||||
});
|
||||
Reference in New Issue
Block a user