File tree 2 files changed +11
-1
lines changed
test/unit/features/options
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ function assertProp (
147
147
}
148
148
}
149
149
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 ) $ /
151
151
152
152
function assertType ( value : any , type : Function , vm : ?Component ) : {
153
153
valid: boolean ;
Original file line number Diff line number Diff line change @@ -252,6 +252,16 @@ describe('Options props', () => {
252
252
expect ( 'Expected String, Number, got Symbol' ) . toHaveBeenWarned ( )
253
253
} )
254
254
}
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
+ }
255
265
256
266
it ( 'custom constructor' , ( ) => {
257
267
function Class ( ) { }
You can’t perform that action at this time.
0 commit comments