'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/); });