File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1026,7 +1026,7 @@ const HasManyDissociator = require('../src/services/has-many-dissociator');
1026
1026
} ) ;
1027
1027
1028
1028
it ( 'should handle numbers over MAX_SAFE_INTEGER' , async ( ) => {
1029
- expect . assertions ( 1 ) ;
1029
+ expect . assertions ( 2 ) ;
1030
1030
const { models, sequelizeOptions } = initializeSequelize ( ) ;
1031
1031
const params = {
1032
1032
fields : {
@@ -1040,6 +1040,7 @@ const HasManyDissociator = require('../src/services/has-many-dissociator');
1040
1040
const result = await new ResourcesGetter ( models . counter , sequelizeOptions , params )
1041
1041
. perform ( ) ;
1042
1042
expect ( result [ 0 ] ) . toHaveLength ( 1 ) ;
1043
+ expect ( result [ 0 ] [ 0 ] . id ) . toBe ( 10 ) ;
1043
1044
} finally {
1044
1045
connectionManager . closeConnection ( ) ;
1045
1046
}
Original file line number Diff line number Diff line change 2
2
{
3
3
"model" : " counter" ,
4
4
"data" : {
5
- "id" : 100 ,
5
+ "id" : 10 ,
6
6
"clicks" : 9013084467599484828
7
7
}
8
- }
8
+ },
9
9
{
10
10
"model" : " user" ,
11
11
"data" : {
You can’t perform that action at this time.
0 commit comments