Skip to content

toBeItalic

Deprecated

Prefer toHaveAttrs which checks multiple attributes at once:

typescript
expect(term.cell(0, 0)).toHaveAttrs({ italic: true })

Assert that a cell has italic styling.

Signature

typescript
expect(cell).toBeItalic()

Usage

typescript
// Check a specific cell
expect(term.cell(0, 0)).toBeItalic()

// Negation
expect(term.cell(0, 5)).not.toBeItalic()

Accepts

RegionSupported
term.cell(r, c)Yes
term.screenNo
term.row(n)No

See Also