close
Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: use console.log instead of util.puts
utils.puts is no longer available in Node.JS 12
  • Loading branch information
alan-agius4 authored and Keen Yee Liau committed May 8, 2020
commit 9d2e18e10d82a97bee58193968f22be6cd1f04e9
3 changes: 1 addition & 2 deletions testapp/scripts/web-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
var express = require('express');
var bodyParser = require('body-parser')
var yargs = require('yargs');
var util = require('util');
var path = require('path');
var env = require('../../spec/environment.js');

Expand All @@ -27,7 +26,7 @@ var main = function() {
testApp.use(bodyParser.json());
testApp.use(testMiddleware);
testApp.listen(port);
util.puts(["Starting express web server in", testAppDir ,"on port", port].
console.log(["Starting express web server in", testAppDir ,"on port", port].
join(" "));
};

Expand Down