Commit 22433ee2 authored by Tejesh's avatar Tejesh 🖖
Browse files

make tests pass in npm run tests by using equivalent json file with npm server

parent 165e0b51
Pipeline #52669 passed with stage
in 4 minutes and 35 seconds
This diff is collapsed.
......@@ -11,7 +11,7 @@ const port = process.argv.length <= 2 ? 1112 : 1111
const app = express()
.use(express.static(path.resolve(__dirname, '..')))
var formhandler_json_data = JSON.parse(fs.readFileSync('./test/formhandler.json', { encoding: "utf8" }));
var formhandler_json_data = JSON.parse(fs.readFileSync('./test/formhandler_csv.json', { encoding: "utf8" }));
// const router = express.Router()
app.use('/formhandler-data', router.get('/', function (req, res, next) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment