test: add unobservable test case for more built-ins

This commit is contained in:
Evan You 2018-09-19 21:50:19 -04:00
parent cb982099e4
commit 77d57813eb

View File

@ -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', () => {