File: em.php

package info (click to toggle)
php-nunomaduro-termwind 2.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,172 kB
  • sloc: php: 3,969; makefile: 34
file content (15 lines) | stat: -rw-r--r-- 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

use function Termwind\parse;

it('renders the element', function () {
    $html = parse('<em>text</em>');

    expect($html)->toBe("\e[3mtext\e[0m");
});

it('renders the element with <i> tag', function () {
    $html = parse('<i>text</i>');

    expect($html)->toBe("\e[3mtext\e[0m");
});