@@ -8,7 +8,7 @@ const Path = require('path')
88
99let server
1010
11- const { experiment, test , before, beforeEach } = ( exports . lab = Lab . script ( ) )
11+ const { experiment, it , before, beforeEach } = ( exports . lab = Lab . script ( ) )
1212const expect = Code . expect
1313
1414experiment ( 'hapi-dev-error register plugin' , ( ) => {
@@ -26,7 +26,7 @@ experiment('hapi-dev-error register plugin', () => {
2626 } )
2727 } )
2828
29- test ( 'test if the plugin is enabled in development for web requests', async ( ) => {
29+ it ( ' is enabled in development for web requests', async ( ) => {
3030 const routeOptions = {
3131 path : '/showErrorsForWeb' ,
3232 method : 'GET' ,
@@ -49,7 +49,7 @@ experiment('hapi-dev-error register plugin', () => {
4949 expect ( payload ) . to . startWith ( '<!DOCTYPE html>' )
5050 } )
5151
52- test ( 'test if the plugin is enabled in development for JSON/REST requests', async ( ) => {
52+ it ( ' is enabled in development for JSON/REST requests', async ( ) => {
5353 const routeOptions = {
5454 path : '/showErrorsForREST' ,
5555 method : 'GET' ,
@@ -77,7 +77,7 @@ experiment('hapi-dev-error register plugin', () => {
7777 expect ( payload . method ) . to . equal ( routeOptions . method )
7878 } )
7979
80- test ( 'test when the error is from a rejected Promise' , async ( ) => {
80+ it ( 'test when the error is from a rejected Promise' , async ( ) => {
8181 const routeOptions = {
8282 path : '/showPromiseError' ,
8383 method : 'GET' ,
@@ -105,7 +105,7 @@ experiment('hapi-dev-error register plugin', () => {
105105 expect ( payload . method ) . to . equal ( routeOptions . method )
106106 } )
107107
108- test ( 'test if the request payload is added to the error response' , async ( ) => {
108+ it ( 'test if the request payload is added to the error response' , async ( ) => {
109109 const routeOptions = {
110110 path : '/with-request-payload' ,
111111 method : 'POST' ,
@@ -167,7 +167,7 @@ experiment('hapi-dev-error renders a custom template', () => {
167167 } )
168168 } )
169169
170- test ( 'render a template' , async ( ) => {
170+ it ( 'render a template' , async ( ) => {
171171 const routeOptions = {
172172 path : '/custom-view' ,
173173 method : 'GET' ,
0 commit comments