yoomoney-sdk
Version:
⭐ Typed YooMoney Wallet SDK for NodeJS. Supported API's: Auth, Wallet & Notifications
14 lines (12 loc) • 305 B
text/typescript
import { expect } from "vitest";
/**
*
*
* @param {string} html
* @param {Record<string, string>} data
*/
export function testHtml(html: string, data: Record<string, unknown>) {
for (const [key, value] of Object.entries(data)) {
expect(html).toContain(`name="${key}" value="${value}"`);
}
}