toString.spec.ts 236 B

1234567891011
  1. import { toString } from 'core/util/index'
  2. import { ref } from 'v3'
  3. test('should unwrap refs', () => {
  4. expect(
  5. toString({
  6. a: ref(0),
  7. b: { c: ref(1) }
  8. })
  9. ).toBe(JSON.stringify({ a: 0, b: { c: 1 } }, null, 2))
  10. })