|
|
@ -206,6 +206,17 @@ describe('Options props', () => { |
|
|
|
expect('Expected Array').toHaveBeenWarned() |
|
|
|
}) |
|
|
|
|
|
|
|
it('primitive wrapper objects', () => { |
|
|
|
/* eslint-disable no-new-wrappers */ |
|
|
|
makeInstance(new String('s'), String) |
|
|
|
expect(console.error.calls.count()).toBe(0) |
|
|
|
makeInstance(new Number(1), Number) |
|
|
|
expect(console.error.calls.count()).toBe(0) |
|
|
|
makeInstance(new Boolean(true), Boolean) |
|
|
|
expect(console.error.calls.count()).toBe(0) |
|
|
|
/* eslint-enable no-new-wrappers */ |
|
|
|
}) |
|
|
|
|
|
|
|
if (hasSymbol) { |
|
|
|
it('symbol', () => { |
|
|
|
makeInstance(Symbol('foo'), Symbol) |
|
|
|