diff --git a/lib/interceptor/cache.js b/lib/interceptor/cache.js index b981ebf9e01..a2f235b8db3 100644 --- a/lib/interceptor/cache.js +++ b/lib/interceptor/cache.js @@ -301,11 +301,11 @@ module.exports = (opts = {}) => { assertCacheMethods(methods, 'opts.methods') if (typeof cacheByDefault !== 'undefined' && typeof cacheByDefault !== 'number') { - throw new TypeError(`exepcted opts.cacheByDefault to be number or undefined, got ${typeof cacheByDefault}`) + throw new TypeError(`expected opts.cacheByDefault to be number or undefined, got ${typeof cacheByDefault}`) } if (typeof type !== 'undefined' && type !== 'shared' && type !== 'private') { - throw new TypeError(`exepcted opts.type to be shared, private, or undefined, got ${typeof type}`) + throw new TypeError(`expected opts.type to be shared, private, or undefined, got ${typeof type}`) } const globalOpts = {