@@ -962,6 +962,7 @@ describe('SFC analyze <script> bindings', () => {
962
962
963
963
expect ( scriptAst ) . toBeDefined ( )
964
964
} )
965
+
965
966
it ( 'recognizes props array declaration' , ( ) => {
966
967
const { bindings } = compile ( `
967
968
<script>
@@ -974,6 +975,7 @@ describe('SFC analyze <script> bindings', () => {
974
975
foo : BindingTypes . PROPS ,
975
976
bar : BindingTypes . PROPS
976
977
} )
978
+ expect ( bindings ! . __isScriptSetup ) . toBe ( false )
977
979
} )
978
980
979
981
it ( 'recognizes props object declaration' , ( ) => {
@@ -997,6 +999,7 @@ describe('SFC analyze <script> bindings', () => {
997
999
baz : BindingTypes . PROPS ,
998
1000
qux : BindingTypes . PROPS
999
1001
} )
1002
+ expect ( bindings ! . __isScriptSetup ) . toBe ( false )
1000
1003
} )
1001
1004
1002
1005
it ( 'recognizes setup return' , ( ) => {
@@ -1017,6 +1020,7 @@ describe('SFC analyze <script> bindings', () => {
1017
1020
foo : BindingTypes . SETUP_MAYBE_REF ,
1018
1021
bar : BindingTypes . SETUP_MAYBE_REF
1019
1022
} )
1023
+ expect ( bindings ! . __isScriptSetup ) . toBe ( false )
1020
1024
} )
1021
1025
1022
1026
it ( 'recognizes async setup return' , ( ) => {
@@ -1037,6 +1041,7 @@ describe('SFC analyze <script> bindings', () => {
1037
1041
foo : BindingTypes . SETUP_MAYBE_REF ,
1038
1042
bar : BindingTypes . SETUP_MAYBE_REF
1039
1043
} )
1044
+ expect ( bindings ! . __isScriptSetup ) . toBe ( false )
1040
1045
} )
1041
1046
1042
1047
it ( 'recognizes data return' , ( ) => {
0 commit comments