@@ -25,7 +25,7 @@ describe('Blueprint: route', function() {
2525 return emberGenerateDestroy ( [ 'route' , 'foo' ] , _file => {
2626 expect ( _file ( 'app/routes/foo.ts' ) )
2727 . to . contain ( "import Route from '@ember/routing/route';" )
28- . to . contain ( 'export default class Foo extends Route.extend({\n ' )
28+ . to . contain ( 'export default class Foo extends Route.extend({' )
2929 . to . contain ( ' // anything which *must* be merged to prototype here' )
3030 . to . contain ( '}) {' )
3131 . to . contain ( ' // normal class body definition here' )
@@ -58,7 +58,7 @@ describe('Blueprint: route', function() {
5858 return emberGenerateDestroy ( [ 'route' , 'foo' , '--path=:foo_id/show' ] , _file => {
5959 expect ( _file ( 'app/routes/foo.ts' ) )
6060 . to . contain ( "import Route from '@ember/routing/route';" )
61- . to . contain ( 'export default class Foo extends Route.extend({\n ' )
61+ . to . contain ( 'export default class Foo extends Route.extend({' )
6262 . to . contain ( ' // anything which *must* be merged to prototype here' )
6363 . to . contain ( '}) {' )
6464 . to . contain ( ' // normal class body definition here' )
@@ -85,7 +85,7 @@ describe('Blueprint: route', function() {
8585 return emberGenerateDestroy ( [ 'route' , 'parent/child' , '--reset-namespace' ] , _file => {
8686 expect ( _file ( 'app/routes/child.ts' ) )
8787 . to . contain ( "import Route from '@ember/routing/route';" )
88- . to . contain ( 'export default class ParentChild extends Route.extend({\n ' )
88+ . to . contain ( 'export default class ParentChild extends Route.extend({' )
8989 . to . contain ( ' // anything which *must* be merged to prototype here' )
9090 . to . contain ( '}) {' )
9191 . to . contain ( ' // normal class body definition here' )
@@ -111,7 +111,7 @@ describe('Blueprint: route', function() {
111111 _file => {
112112 expect ( _file ( 'app/child/route.ts' ) )
113113 . to . contain ( "import Route from '@ember/routing/route';" )
114- . to . contain ( 'export default class ParentChild extends Route.extend({\n ' )
114+ . to . contain ( 'export default class ParentChild extends Route.extend({' )
115115 . to . contain ( ' // anything which *must* be merged to prototype here' )
116116 . to . contain ( '}) {' )
117117 . to . contain ( ' // normal class body definition here' )
@@ -163,7 +163,7 @@ describe('Blueprint: route', function() {
163163 return emberGenerateDestroy ( [ 'route' , 'foo' , '--pod' ] , _file => {
164164 expect ( _file ( 'app/foo/route.ts' ) )
165165 . to . contain ( "import Route from '@ember/routing/route';" )
166- . to . contain ( 'export default class Foo extends Route.extend({\n ' )
166+ . to . contain ( 'export default class Foo extends Route.extend({' )
167167 . to . contain ( ' // anything which *must* be merged to prototype here' )
168168 . to . contain ( '}) {' )
169169 . to . contain ( ' // normal class body definition here' )
@@ -227,7 +227,7 @@ describe('Blueprint: route', function() {
227227 return emberGenerateDestroy ( [ 'route' , 'foo' , '--pod' ] , _file => {
228228 expect ( _file ( 'app/pods/foo/route.ts' ) )
229229 . to . contain ( "import Route from '@ember/routing/route';" )
230- . to . contain ( 'export default class Foo extends Route.extend({\n ' )
230+ . to . contain ( 'export default class Foo extends Route.extend({' )
231231 . to . contain ( ' // anything which *must* be merged to prototype here' )
232232 . to . contain ( '}) {' )
233233 . to . contain ( ' // normal class body definition here' )
@@ -258,7 +258,7 @@ describe('Blueprint: route', function() {
258258 return emberGenerateDestroy ( [ 'route' , 'foo' ] , _file => {
259259 expect ( _file ( 'addon/routes/foo.ts' ) )
260260 . to . contain ( "import Route from '@ember/routing/route';" )
261- . to . contain ( 'export default class Foo extends Route.extend({\n ' )
261+ . to . contain ( 'export default class Foo extends Route.extend({' )
262262 . to . contain ( ' // anything which *must* be merged to prototype here' )
263263 . to . contain ( '}) {' )
264264 . to . contain ( ' // normal class body definition here' )
@@ -290,7 +290,7 @@ describe('Blueprint: route', function() {
290290 return emberGenerateDestroy ( [ 'route' , 'foo/bar' ] , _file => {
291291 expect ( _file ( 'addon/routes/foo/bar.ts' ) )
292292 . to . contain ( "import Route from '@ember/routing/route';" )
293- . to . contain ( 'export default class FooBar extends Route.extend({\n ' )
293+ . to . contain ( 'export default class FooBar extends Route.extend({' )
294294 . to . contain ( ' // anything which *must* be merged to prototype here' )
295295 . to . contain ( '}) {' )
296296 . to . contain ( ' // normal class body definition here' )
@@ -320,7 +320,7 @@ describe('Blueprint: route', function() {
320320 return emberGenerateDestroy ( [ 'route' , 'foo' , '--dummy' ] , _file => {
321321 expect ( _file ( 'tests/dummy/app/routes/foo.ts' ) )
322322 . to . contain ( "import Route from '@ember/routing/route';" )
323- . to . contain ( 'export default class Foo extends Route.extend({\n ' )
323+ . to . contain ( 'export default class Foo extends Route.extend({' )
324324 . to . contain ( ' // anything which *must* be merged to prototype here' )
325325 . to . contain ( '}) {' )
326326 . to . contain ( ' // normal class body definition here' )
@@ -342,7 +342,7 @@ describe('Blueprint: route', function() {
342342 return emberGenerateDestroy ( [ 'route' , 'foo/bar' , '--dummy' ] , _file => {
343343 expect ( _file ( 'tests/dummy/app/routes/foo/bar.ts' ) )
344344 . to . contain ( "import Route from '@ember/routing/route';" )
345- . to . contain ( 'export default class FooBar extends Route.extend({\n ' )
345+ . to . contain ( 'export default class FooBar extends Route.extend({' )
346346 . to . contain ( ' // anything which *must* be merged to prototype here' )
347347 . to . contain ( '}) {' )
348348 . to . contain ( ' // normal class body definition here' )
@@ -368,7 +368,7 @@ describe('Blueprint: route', function() {
368368 return emberGenerateDestroy ( [ 'route' , 'foo' , '--pod' ] , _file => {
369369 expect ( _file ( 'addon/foo/route.ts' ) )
370370 . to . contain ( "import Route from '@ember/routing/route';" )
371- . to . contain ( 'export default class Foo extends Route.extend({\n ' )
371+ . to . contain ( 'export default class Foo extends Route.extend({' )
372372 . to . contain ( ' // anything which *must* be merged to prototype here' )
373373 . to . contain ( '}) {' )
374374 . to . contain ( ' // normal class body definition here' )
@@ -402,7 +402,7 @@ describe('Blueprint: route', function() {
402402 return emberGenerateDestroy ( [ 'route' , 'foo' , '--in-repo-addon=my-addon' ] , _file => {
403403 expect ( _file ( 'lib/my-addon/addon/routes/foo.ts' ) )
404404 . to . contain ( "import Route from '@ember/routing/route';" )
405- . to . contain ( 'export default class Foo extends Route.extend({\n ' )
405+ . to . contain ( 'export default class Foo extends Route.extend({' )
406406 . to . contain ( ' // anything which *must* be merged to prototype here' )
407407 . to . contain ( '}) {' )
408408 . to . contain ( ' // normal class body definition here' )
@@ -428,7 +428,7 @@ describe('Blueprint: route', function() {
428428 return emberGenerateDestroy ( [ 'route' , 'foo/bar' , '--in-repo-addon=my-addon' ] , _file => {
429429 expect ( _file ( 'lib/my-addon/addon/routes/foo/bar.ts' ) )
430430 . to . contain ( "import Route from '@ember/routing/route';" )
431- . to . contain ( 'export default class FooBar extends Route.extend({\n ' )
431+ . to . contain ( 'export default class FooBar extends Route.extend({' )
432432 . to . contain ( ' // anything which *must* be merged to prototype here' )
433433 . to . contain ( '}) {' )
434434 . to . contain ( ' // normal class body definition here' )
0 commit comments