File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
test/unit/features/options Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ function assertProp (
147147 }
148148}
149149
150- const simpleCheckRE = / ^ ( S t r i n g | N u m b e r | B o o l e a n | F u n c t i o n | S y m b o l ) $ /
150+ const simpleCheckRE = / ^ ( S t r i n g | N u m b e r | B o o l e a n | F u n c t i o n | S y m b o l | B i g I n t ) $ /
151151
152152function assertType ( value : any , type : Function , vm : ?Component ) : {
153153 valid: boolean ;
Original file line number Diff line number Diff line change @@ -252,6 +252,16 @@ describe('Options props', () => {
252252 expect ( 'Expected String, Number, got Symbol' ) . toHaveBeenWarned ( )
253253 } )
254254 }
255+
256+ if ( typeof BigInt !== 'undefined' ) {
257+ /* global BigInt */
258+ it ( 'bigint' , ( ) => {
259+ makeInstance ( BigInt ( 100 ) , BigInt )
260+ expect ( console . error . calls . count ( ) ) . toBe ( 0 )
261+ makeInstance ( { } , BigInt )
262+ expect ( 'Expected BigInt, got Object' ) . toHaveBeenWarned ( )
263+ } )
264+ }
255265
256266 it ( 'custom constructor' , ( ) => {
257267 function Class ( ) { }
You can’t perform that action at this time.
0 commit comments