Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { announcementHtml } from './home-announcement.mjs';
describe('announcementHtml', () => {
it('links the text, escaped, so a translation cannot add markup', () => {
const html = announcementHtml({ text: 'V7 <b>"jetzt"</b> & mehr', href: '/v7/de/start-here/upgrading/' });
assert.match(html, /^<a class="home-announcement" href="\/v7\/de\/start-here\/upgrading\/"/);
assert.ok(html.includes('aria-label="V7 <b>"jetzt"</b> & mehr"'));
assert.ok(html.includes('</span>V7 <b>"jetzt"</b> & mehr</span>'));
assert.ok(!html.includes('<b>'));
});
});