1+ /* eslint-disable @typescript-eslint/no-explicit-any */
2+
13import { module , test } from 'qunit' ;
24import { setup , visit } from 'ember-cli-fastboot-testing/test-support' ;
35
46module ( 'FastBoot | rendering tests' , function ( hooks ) {
57 setup ( hooks ) ;
68
79 test ( 'renders' , async function ( assert ) {
8- const res = await visit ( '/fastboot' ) ;
10+ const res = ( await visit ( '/fastboot' ) ) as any ;
911 assert . strictEqual ( res . statusCode , 200 ) ;
1012
1113 assert . dom ( 'body' , res . htmlDocument ) . exists ( { count : 1 } ) ;
@@ -14,7 +16,7 @@ module('FastBoot | rendering tests', function (hooks) {
1416
1517 test ( 'renders simple mobiledoc' , async function ( assert ) {
1618 const name = 'simple' ;
17- const { htmlDocument } = await visit ( '/fastboot' ) ;
19+ const { htmlDocument } = ( await visit ( '/fastboot' ) ) as any ;
1820 const wrapper = `.render-mobiledoc-wrapper.${ name } ` ;
1921 assert . dom ( wrapper , htmlDocument ) . exists ( { count : 1 } ) ;
2022
@@ -25,7 +27,7 @@ module('FastBoot | rendering tests', function (hooks) {
2527
2628 test ( 'renders mobiledoc with markup' , async function ( assert ) {
2729 const name = 'with-markup' ;
28- const { htmlDocument } = await visit ( '/fastboot' ) ;
30+ const { htmlDocument } = ( await visit ( '/fastboot' ) ) as any ;
2931
3032 const wrapper = `.render-mobiledoc-wrapper.${ name } ` ;
3133 assert . dom ( wrapper , htmlDocument ) . exists ( { count : 1 } ) ;
@@ -37,7 +39,7 @@ module('FastBoot | rendering tests', function (hooks) {
3739
3840 test ( 'renders mobiledoc with link' , async function ( assert ) {
3941 const name = 'with-link' ;
40- const { htmlDocument } = await visit ( '/fastboot' ) ;
42+ const { htmlDocument } = ( await visit ( '/fastboot' ) ) as any ;
4143
4244 const wrapper = `.render-mobiledoc-wrapper.${ name } ` ;
4345 assert . dom ( wrapper , htmlDocument ) . exists ( { count : 1 } ) ;
@@ -52,7 +54,7 @@ module('FastBoot | rendering tests', function (hooks) {
5254
5355 test ( 'renders mobiledoc with unsafe link' , async function ( assert ) {
5456 const name = 'with-unsafe-link' ;
55- const { htmlDocument } = await visit ( '/fastboot' ) ;
57+ const { htmlDocument } = ( await visit ( '/fastboot' ) ) as any ;
5658
5759 const wrapper = `.render-mobiledoc-wrapper.${ name } ` ;
5860 assert . dom ( wrapper , htmlDocument ) . exists ( { count : 1 } ) ;
@@ -70,7 +72,7 @@ module('FastBoot | rendering tests', function (hooks) {
7072 const componentClassName = 'test-card-component' ;
7173 const payloadClassName = 'test-card-component-payload' ;
7274
73- const { htmlDocument, statusCode } = await visit ( '/fastboot' ) ;
75+ const { htmlDocument, statusCode } = ( await visit ( '/fastboot' ) ) as any ;
7476 assert . strictEqual ( statusCode , 200 ) ;
7577
7678 const wrapper = `.render-mobiledoc-wrapper.${ name } ` ;
@@ -89,7 +91,7 @@ module('FastBoot | rendering tests', function (hooks) {
8991 const payloadClassName = 'test-atom-component-payload' ;
9092 const valueClassName = 'test-atom-component-value' ;
9193
92- const { htmlDocument, statusCode } = await visit ( '/fastboot' ) ;
94+ const { htmlDocument, statusCode } = ( await visit ( '/fastboot' ) ) as any ;
9395 assert . strictEqual ( statusCode , 200 ) ;
9496
9597 const wrapper = `.render-mobiledoc-wrapper.${ name } ` ;
0 commit comments