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(); });;
Tests
Use .toBeSymbol
when checking if a value is a Symbol
.
test('passes when value is a symbol', () => { expect(Symbol()).toBeSymbol(); expect(true).not.toBeSymbol(); });;
Tests