|
|
@@ -277,6 +277,11 @@ describe('reactivity/reactive', () => {
|
|
|
expect(isReactive(obj.bar)).toBe(false)
|
|
|
})
|
|
|
|
|
|
+ test('markRaw should skip non-extensible objects', () => {
|
|
|
+ const obj = Object.seal({ foo: 1 })
|
|
|
+ expect(() => markRaw(obj)).not.toThrowError()
|
|
|
+ })
|
|
|
+
|
|
|
test('should not observe non-extensible objects', () => {
|
|
|
const obj = reactive({
|
|
|
foo: Object.preventExtensions({ a: 1 }),
|