@bonniernews/fake-tool-api
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -736,3 +736,3 @@ import nock from "nock"; | ||
const ofType = contentByType[type]; | ||
if (!ofType) { | ||
if (!ofType || !ofType[id]) { | ||
return [ 404 ]; | ||
@@ -739,0 +739,0 @@ } |
{ | ||
"name": "@bonniernews/fake-tool-api", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"type": "module", | ||
@@ -21,5 +21,3 @@ "description": "Mocked Bonnier News tool api, for use in automated tests", | ||
"license": "MIT", | ||
"files": [ | ||
"index.js" | ||
], | ||
"files": ["index.js"], | ||
"devDependencies": { | ||
@@ -26,0 +24,0 @@ "@bonniernews/eslint-config": "^1.1.0", |
23547