angular-mock-record
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "angular-mock-record", | ||
"version": "1.0.0", | ||
"description": "A protractor framework that mocks and records requests", | ||
"version": "1.0.1", | ||
"description": "An angular / protractor framework that mocks and records requests. Requests can be manually mocked or recorded like VCR.", | ||
"main": "server.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
const express = require('express'); | ||
const RequestHandler = require('./request.handler.js'); | ||
const config = require('../../platform-ui-2/mock.record.config.json'); | ||
const config; | ||
try { | ||
config = require('../../../mock.record.config.json'); | ||
} catch { | ||
console.error('The mock.record.config.json configuration file is missing. Please add this configuration and retry.') | ||
} | ||
@@ -5,0 +10,0 @@ class MockServer { |
11559
352