We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c4cbe0 commit 0ac2500Copy full SHA for 0ac2500
test/apis/ref.spec.ts
@@ -9,6 +9,7 @@ import {
9
// isReactive,
10
computed,
11
effect,
12
+ unref,
13
} from '../../src';
14
// import { shallowRef, unref, customRef } from '../src/ref'
15
@@ -155,10 +156,10 @@ describe('reactivity/ref', () => {
155
156
expect(objRef.value[customSymbol]).toStrictEqual(obj[customSymbol]);
157
});
158
- // test('unref', () => {
159
- // expect(unref(1)).toBe(1);
160
- // expect(unref(ref(1))).toBe(1);
161
- // });
+ test('unref', () => {
+ expect(unref(1)).toBe(1);
+ expect(unref(ref(1))).toBe(1);
162
+ });
163
164
// test('shallowRef', () => {
165
// const sref = shallowRef({ a: 1 });
0 commit comments