Skip to content

Commit 563f9ce

Browse files
committed
amend for other types
1 parent de3e836 commit 563f9ce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fourteen-testing-api.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ module.exports = function(file, api) {
5454
&& nodePath.expression.arguments.length === 2
5555
&& j.Literal.check(nodePath.expression.arguments[0])
5656
&& (
57-
nodePath.expression.arguments[0].value.startsWith('route:')
58-
|| nodePath.expression.arguments[0].value.startsWith('controller:')
57+
/^(adapter|route|controller|service|serializer):/.test(nodePath.expression.arguments[0].value)
5958
)
6059
return isSetupNeeds ;
6160
}

0 commit comments

Comments
 (0)