Browse Source

chore: remove outdated test case

Evan You 4 years ago
parent
commit
4b5d1ac894
1 changed files with 0 additions and 6 deletions
  1. 0 6
      packages/ref-transform/__tests__/refTransform.spec.ts

+ 0 - 6
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`