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
| Region | Supported |
|---|---|
term.cell(r, c) | Yes |
term.screen | No |
term.row(n) | No |
See Also
- toHaveAttrs - composable attribute matcher (preferred)
- toBeBold - bold styling
- toBeDim - dim/faint styling
- toHaveUnderline - underline styling