File: test/test.js

Recommend this page to a friend!
  Classes of Leonardo Mauro Pereira Moraes   JavaScript Super Mario Maker Course Search   test/test.js   Download  
File: test/test.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: JavaScript Super Mario Maker Course Search
Search for courses for Super Mario Maker
Author: By
Last change: Update of test/test.js
Date: 2 years ago
Size: 670 bytes
 

Contents

Class file image Download
/* Include */ const SmmCourseSearch = require("../lib/SmmCourseSearch.js"); // ## Try search courses // For example to get the most recents courses var query = { region: "all", uploadDate: "pastDay", sortBy: "mostRecent" }; console.log("testing: smm-maker-search"); console.time("test"); SmmCourseSearch.getCourses(query, function(error, courses){ //SmmCourseSearch.getCoursesPages(query, 1 (firstPage), 10 (lastPage), function(error, courses){ //SmmCourseSearch.getInfinity(query, function(error, courses){ if(error) { console.log("> Courses not exist."); } else { console.log(courses); } console.timeEnd("test"); });