]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove outdated test case
authorEvan You <yyx990803@gmail.com>
Fri, 10 Dec 2021 07:35:20 +0000 (15:35 +0800)
committerEvan You <yyx990803@gmail.com>
Fri, 10 Dec 2021 07:35:20 +0000 (15:35 +0800)
packages/ref-transform/__tests__/refTransform.spec.ts

index ec8e841dc1c080f69d13d35de0bde48dfa3d7879..5e8775b6c52708fe6f65e4e85088484211333813 100644 (file)
@@ -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`