Skip to main content

Symbol

.toBeSymbol()

Use .toBeSymbol when checking if a value is a Symbol.

test('passes when value is a symbol', () => {
  expect(Symbol()).toBeSymbol();
  expect(true).not.toBeSymbol();
});;

Open browser consoleTests