@@ -9,15 +9,15 @@ describe('Nunjucks context', () => {
99 beforeEach ( ( ) => jest . resetModules ( ) )
1010
1111 describe ( 'Asset path' , ( ) => {
12- it ( "should include 'assetPath' for GOV.UK Frontend icons" , async ( ) => {
13- const { assetPath } = await devtoolContext ( null )
12+ it ( "should include 'assetPath' for GOV.UK Frontend icons" , ( ) => {
13+ const { assetPath } = devtoolContext ( null )
1414 expect ( assetPath ) . toBe ( '/assets' )
1515 } )
1616 } )
1717
1818 describe ( 'Asset helper' , ( ) => {
19- it ( "should locate 'assets-manifest.json' assets" , async ( ) => {
20- const { getDxtAssetPath } = await devtoolContext ( null )
19+ it ( "should locate 'assets-manifest.json' assets" , ( ) => {
20+ const { getDxtAssetPath } = devtoolContext ( null )
2121
2222 expect ( getDxtAssetPath ( 'example.scss' ) ) . toBe (
2323 '/stylesheets/example.xxxxxxx.min.css'
@@ -39,16 +39,16 @@ describe('Nunjucks context', () => {
3939
4040 // Update config for missing manifest
4141 config . set ( 'publicDir' , tmpdir ( ) )
42- const { getDxtAssetPath } = await devtoolContext ( null )
42+ const { getDxtAssetPath } = devtoolContext ( null )
4343
4444 // Uses original paths when missing
4545 expect ( getDxtAssetPath ( 'example.scss' ) ) . toBe ( '/example.scss' )
4646 expect ( getDxtAssetPath ( 'example.mjs' ) ) . toBe ( '/example.mjs' )
4747 } )
4848 } )
4949
50- it ( 'should return path to unknown assets' , async ( ) => {
51- const { getDxtAssetPath } = await devtoolContext ( null )
50+ it ( 'should return path to unknown assets' , ( ) => {
51+ const { getDxtAssetPath } = devtoolContext ( null )
5252
5353 expect ( getDxtAssetPath ( '' ) ) . toBe ( '/' )
5454 expect ( getDxtAssetPath ( 'example.jpg' ) ) . toBe ( '/example.jpg' )
0 commit comments