From 4b5d1ac8946b0b2cc1a7c46a2b1043577d704b50 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 10 Dec 2021 15:35:20 +0800 Subject: [PATCH] chore: remove outdated test case --- packages/ref-transform/__tests__/refTransform.spec.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/ref-transform/__tests__/refTransform.spec.ts b/packages/ref-transform/__tests__/refTransform.spec.ts index ec8e841d..5e8775b6 100644 --- a/packages/ref-transform/__tests__/refTransform.spec.ts +++ b/packages/ref-transform/__tests__/refTransform.spec.ts @@ -364,12 +364,6 @@ test('handle TS casting syntax', () => { }) describe('errors', () => { - test('non-let $ref declaration', () => { - expect(() => transform(`const a = $ref(1)`)).toThrow( - `$ref() bindings can only be declared with let` - ) - }) - test('$ref w/ destructure', () => { expect(() => transform(`let { a } = $ref(1)`)).toThrow( `cannot be used with destructure`