From 77d57813eb1c1bf4ca0079425ed4261e1abfbf20 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 19 Sep 2018 21:50:19 -0400 Subject: [PATCH] test: add unobservable test case for more built-ins --- packages/observer/__tests__/observable.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/observer/__tests__/observable.spec.ts b/packages/observer/__tests__/observable.spec.ts index 86792c2b..d50d2ca3 100644 --- a/packages/observer/__tests__/observable.spec.ts +++ b/packages/observer/__tests__/observable.spec.ts @@ -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', () => {