@@ -2,7 +2,7 @@ import {MOVED_PERMANENTLY, MOVED_TEMPORARILY} from 'http-status-codes';
22import sinon from 'sinon' ;
33import { assert } from 'chai' ;
44import any from '@travi/any' ;
5- import Boom from 'boom' ;
5+ import Boom from '@hapi/ boom' ;
66import renderThroughReactRouter from '../../src/router-wrapper' ;
77import * as defaultRenderFactory from '../../src/default-render-factory' ;
88import * as routeMatcher from '../../src/route-matcher' ;
@@ -22,7 +22,7 @@ suite('router-wrapper', () => {
2222
2323 sandbox . stub ( routeMatcher , 'default' ) ;
2424 sandbox . stub ( dataFetcher , 'default' ) ;
25- sandbox . stub ( Boom , 'wrap ' ) ;
25+ sandbox . stub ( Boom , 'boomify ' ) ;
2626 sandbox . stub ( defaultRenderFactory , 'default' ) ;
2727 } ) ;
2828
@@ -128,7 +128,7 @@ suite('router-wrapper', () => {
128128 const error = new Error ( 'from test' ) ;
129129 const wrappedError = any . simpleObject ( ) ;
130130 routeMatcher . default . rejects ( error ) ;
131- Boom . wrap . withArgs ( error ) . returns ( wrappedError ) ;
131+ Boom . boomify . withArgs ( error ) . returns ( wrappedError ) ;
132132
133133 return assert . isRejected ( renderThroughReactRouter ( { raw : { req : { url : any . string ( ) } } } , reply , { } ) , wrappedError ) ;
134134 } ) ;
0 commit comments