@@ -8,7 +8,6 @@ import Serializer from '../index';
8
8
import { VERSION as JSONAPI_VERSION } from '../../jsonapi' ;
9
9
10
10
import range from '../../../utils/range' ;
11
- import setType from '../../../utils/set-type' ;
12
11
import { getTestApp } from '../../../../test/utils/get-test-app' ;
13
12
14
13
import type Application from '../../application' ;
@@ -47,12 +46,18 @@ describe('module "serializer"', () => {
47
46
48
47
before ( async ( ) => {
49
48
const { models } = await getTestApp ( ) ;
50
- const Tag = setType ( ( ) => models . get ( 'tag' ) ) ;
51
- const Post = setType ( ( ) => models . get ( 'post' ) ) ;
52
- const User = setType ( ( ) => models . get ( 'user' ) ) ;
53
- const Image = setType ( ( ) => models . get ( 'image' ) ) ;
54
- const Comment = setType ( ( ) => models . get ( 'comment' ) ) ;
55
- const Categorization = setType ( ( ) => models . get ( 'categorization' ) ) ;
49
+ // $FlowIgnore
50
+ const Tag = models . get ( 'tag' ) ;
51
+ // $FlowIgnore
52
+ const Post = models . get ( 'post' ) ;
53
+ // $FlowIgnore
54
+ const User = models . get ( 'user' ) ;
55
+ // $FlowIgnore
56
+ const Image = models . get ( 'image' ) ;
57
+ // $FlowIgnore
58
+ const Comment = models . get ( 'comment' ) ;
59
+ // $FlowIgnore
60
+ const Categorization = models . get ( 'categorization' ) ;
56
61
57
62
class TestSerializer extends Serializer {
58
63
attributes = [
@@ -336,7 +341,10 @@ describe('module "serializer"', () => {
336
341
} ) ;
337
342
} ) ;
338
343
339
- it ( 'works with an array of `Model` instances' , async ( ) => {
344
+ it ( 'works with an array of `Model` instances' , async function ( ) {
345
+ this . slow ( 13 * 1000 ) ;
346
+ this . timeout ( 25 * 1000 ) ;
347
+
340
348
const posts = await Promise . all (
341
349
Array . from ( range ( 1 , 25 ) ) . map ( ( ) => {
342
350
return createPost ( ) ;
0 commit comments