added test file
This commit is contained in:
26
test.js
26
test.js
@@ -1,17 +1,17 @@
|
||||
const linkedIn = require('./index');
|
||||
const linkedIn = require("./index");
|
||||
|
||||
const queryOptions = {
|
||||
keyword: 'software engineer',
|
||||
location: 'los angeles',
|
||||
dateSincePosted: 'past Week',
|
||||
jobType: 'full time',
|
||||
remoteFilter: 'remote',
|
||||
salary: '100000',
|
||||
experienceLevel: 'entry level',
|
||||
limit: '1',
|
||||
sortBy: 'recent'
|
||||
};
|
||||
keyword: "HR",
|
||||
location: "India",
|
||||
dateSincePosted: "past Week",
|
||||
jobType: "full time",
|
||||
remoteFilter: "remote",
|
||||
salary: "100000",
|
||||
experienceLevel: "entry level",
|
||||
limit: "1",
|
||||
sortBy: "recent",
|
||||
};
|
||||
|
||||
linkedIn.query(queryOptions).then(response => {
|
||||
linkedIn.query(queryOptions).then((response) => {
|
||||
console.log(response); // An array of Job objects
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user