test: add unobservable test case for more built-ins
This commit is contained in:
parent
cb982099e4
commit
77d57813eb
@ -141,6 +141,10 @@ describe('observer/observable', () => {
|
||||
// built-ins should work and return same value
|
||||
const p = Promise.resolve()
|
||||
expect(observable(p)).toBe(p)
|
||||
const r = new RegExp('')
|
||||
expect(observable(r)).toBe(r)
|
||||
const d = new Date()
|
||||
expect(observable(d)).toBe(d)
|
||||
})
|
||||
|
||||
test('markNonReactive', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user