Skip to content

Commit 638e92e

Browse files
committed
Replaced obsolete util.print with console.log
1 parent 3dfabb8 commit 638e92e

20 files changed

Lines changed: 19 additions & 25 deletions

examples/node/call-assignUserToken-action-for-given-user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var instance = ApiFactory.getInstance({
2727
version: '4.0'
2828
});
2929

30-
util.print('Logs in, loads list of active users, then calls assignUserToken action for the first user\n');
30+
console.log('Logs in, loads list of active users, then calls assignUserToken action for the first user\n');
3131
util.log('Logging in ...');
3232
instance.login('new@user.attask', 'user').then(
3333
function(data) {

examples/node/create-and-remove-template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var instance = ApiFactory.getInstance({
2626
version: '4.0'
2727
});
2828

29-
util.print('Logs in, then creates a new template with name "API Template", then removes it\n');
29+
console.log('Logs in, then creates a new template with name "API Template", then removes it\n');
3030
util.log('Logging in ...');
3131
instance.login('new@user.attask', 'user').then(
3232
function(data) {

examples/node/create-edit-delete-group-pc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var deleteGroup = function(data) {
5151
return instance.remove('group', data.ID);
5252
};
5353

54-
util.print('Logs in, then creates a group "Api Group", edits the name to read "Api Group 2", then deletes it\n');
54+
console.log('Logs in, then creates a group "Api Group", edits the name to read "Api Group 2", then deletes it\n');
5555

5656
login().then(createGroup).then(editGroup).then(deleteGroup).then(
5757
function() {

examples/node/create-edit-delete-group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var instance = ApiFactory.getInstance({
2626
version: '4.0'
2727
});
2828

29-
util.print('Logs in, then creates a group "Api Group", edits the name to read "Api Group 2", then deletes it\n');
29+
console.log('Logs in, then creates a group "Api Group", edits the name to read "Api Group 2", then deletes it\n');
3030
util.log('Logging in ...');
3131
instance.login('new@user.attask', 'user').then(
3232
function(data) {

examples/node/create-new-project-and-share.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var instance = ApiFactory.getInstance({
2626
version: '4.0'
2727
});
2828

29-
util.print('Logs in, then creates a new project with name "API Project Shared" and then shares it\n');
29+
console.log('Logs in, then creates a new project with name "API Project Shared" and then shares it\n');
3030
util.log('Logging in ...');
3131
instance.login('new@user.attask', 'user').then(
3232
function(data) {

examples/node/create-new-project.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var instance = ApiFactory.getInstance({
2626
version: '4.0'
2727
});
2828

29-
util.print('Logs in, then creates a new project with name "API Project"\n');
29+
console.log('Logs in, then creates a new project with name "API Project"\n');
3030
util.log('Logging in ...');
3131
instance.login('new@user.attask', 'user').then(
3232
function(data) {

examples/node/create-project-copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var instance = ApiFactory.getInstance({
2626
version: '4.0'
2727
});
2828

29-
util.print('Logs in, then creates a new project with name "API Project", then copies it\n');
29+
console.log('Logs in, then creates a new project with name "API Project", then copies it\n');
3030
util.log('Logging in ...');
3131
instance.login('new@user.attask', 'user').then(
3232
function(data) {

examples/node/delete-projects-by-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function deleteProject(projectID) {
3939
);
4040
}
4141

42-
util.print('Logs in, then deletes all projects with name containing "API Project"\n');
42+
console.log('Logs in, then deletes all projects with name containing "API Project"\n');
4343
util.log('Logging in ...');
4444
instance.login('new@user.attask', 'user').then(
4545
function(data) {

examples/node/get-metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var instance = ApiFactory.getInstance({
2626
version: '4.0'
2727
});
2828

29-
util.print('Logs in, returns metadata about available API resources\n');
29+
console.log('Logs in, returns metadata about available API resources\n');
3030
util.log('Logging in ...');
3131
instance.login('new@user.attask', 'user').then(
3232
function(data) {

examples/node/get-multiple-tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var instance = ApiFactory.getInstance({
2626
version: '4.0'
2727
});
2828

29-
util.print('Logs in, queries details of multiple tasks\n');
29+
console.log('Logs in, queries details of multiple tasks\n');
3030
util.log('Logging in ...');
3131
instance.login('new@user.attask', 'user').then(
3232
function(data) {

0 commit comments

Comments
 (0)