Skip to content

Commit

Permalink
added listBy test to test units
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaaqoub committed Jun 9, 2018
1 parent c6534c0 commit 13ede23
Show file tree
Hide file tree
Showing 18 changed files with 86 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/client_contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ describe('Clients Contacts API', function() {
assert.equal(typeof harvest.clientContacts.list, 'function');
done();
});

it('should implement ListBy contacts method', (done) => {
assert.equal(typeof harvest.clientContacts.listBy, 'function');
done();
});
});

describe('Retrieve a contact', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/clients.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ describe('Clients API', function() {
const clients = await harvest.clients.list();
assert(clients);
});

it('should implement ListBy clients method', (done) => {
assert.equal(typeof harvest.clients.listBy, 'function');
done();
});
});

describe('Retrieve a client', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/estimate_item_categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Estimate Item Categories API', function() {
assert.equal(typeof harvest.estimateItemCategories.list, 'function');
done();
});

it('should implement ListBy Estimate Item Categories method', (done) => {
assert.equal(typeof harvest.estimateItemCategories.listBy, 'function');
done();
});
});

describe('Retrieve an Estimate Item Categories', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/estimate_messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Estimate Messages API', function() {
assert.equal(typeof harvest.estimateMessages.list, 'function');
done();
});

it('should implement ListBy Estimate Messages method', (done) => {
assert.equal(typeof harvest.estimateMessages.listBy, 'function');
done();
});
});

describe('Create Estimate Message', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/estimates.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ describe('Estimates API', function() {
const estimates = await harvest.estimates.list();
assert(estimates);
});

it('should implement ListBy Estimates method', (done) => {
assert.equal(typeof harvest.estimates.listBy, 'function');
done();
});
});

describe('Retrieve an Estimate', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/expense_categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Expense Categories API', function() {
assert.equal(typeof harvest.expenseCategories.list, 'function');
done();
});

it('should implement ListBy expense categories method', (done) => {
assert.equal(typeof harvest.expenseCategories.listBy, 'function');
done();
});
});

describe('Retrieve an expense category', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/expenses.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Expenses API', function() {
assert.equal(typeof harvest.expenses.list, 'function');
done();
});

it('should implement ListBy expenses method', (done) => {
assert.equal(typeof harvest.expenses.listBy, 'function');
done();
});
});

describe('Retrieve an expense', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/invoice_item_categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Invoice Item Categories API', function() {
assert.equal(typeof harvest.invoiceItemCategories.list, 'function');
done();
});

it('should implement ListBy Invoice Item Categories method', (done) => {
assert.equal(typeof harvest.invoiceItemCategories.listBy, 'function');
done();
});
});

describe('Retrieve an Invoice Item Categories', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/invoice_messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ describe('Invoice Messages API', function() {
const invoiceMessages = await harvest.invoiceMessages.list(INVOICE_ID);
assert(invoiceMessages);
});

it('should implement ListBy Invoice Messages method', (done) => {
assert.equal(typeof harvest.invoiceMessages.listBy, 'function');
done();
});
});

describe('Mark an Invoice', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/invoice_payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ describe('Invoice Payments API', function() {
assert.equal(typeof harvest.invoicePayments.list, 'function');
done();
});

it('should implement ListBy Invoice Payments method', (done) => {
assert.equal(typeof harvest.invoicePayments.listBy, 'function');
done();
});
});

describe('Delete Invoice Payments', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/invoices.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ describe('Invoices API', function() {
assert.equal(typeof harvest.invoices.list, 'function');
done();
});

it('should implement ListBy Invoices method', (done) => {
assert.equal(typeof harvest.invoices.listBy, 'function');
done();
});
});

describe('Retrieve an invoice', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/project_task_assignments.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Project Task Assignments API', function() {
assert.equal(typeof harvest.projectTaskAssignments.list, 'function');
done();
});

it('should implement ListBy task assignments method', (done) => {
assert.equal(typeof harvest.projectTaskAssignments.listBy, 'function');
done();
});
});

describe('Retrieve a task assignment', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/project_user_assignments.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Project User Assignments API', function() {
assert.equal(typeof harvest.projectUserAssignments.list, 'function');
done();
});

it('should implement ListBy user assignments method', (done) => {
assert.equal(typeof harvest.projectUserAssignments.listBy, 'function');
done();
});
});

describe('Retrieve a user assignment', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Projects API', function() {
done();
});

it('should implement ListBy all projects method', (done) => {
it('should implement ListBy projects method', (done) => {
assert.equal(typeof harvest.projects.listBy, 'function');
done();
});
Expand Down
5 changes: 5 additions & 0 deletions test/roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Roles API', function() {
assert.equal(typeof harvest.roles.list, 'function');
done();
});

it('should implement ListBy roles method', (done) => {
assert.equal(typeof harvest.roles.listBy, 'function');
done();
});
});

describe('Retrieve a role', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Tasks API', function() {
assert.equal(typeof harvest.tasks.list, 'function');
done();
});

it('should implement ListBy tasks method', (done) => {
assert.equal(typeof harvest.tasks.listBy, 'function');
done();
});
});

describe('Retrieve a tasks', function() {
Expand Down
5 changes: 5 additions & 0 deletions test/user_project_assignments.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ describe('User Project Assignments API', function() {
assert.equal(typeof harvest.userProjectAssignments.list, 'function');
done();
});

it('should implement ListBy User Project Assignments method', (done) => {
assert.equal(typeof harvest.userProjectAssignments.listBy, 'function');
done();
});
});
});
5 changes: 5 additions & 0 deletions test/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ describe('Users API', function() {
assert.equal(typeof harvest.users.list, 'function');
done();
});

it('should implement ListBy users method', (done) => {
assert.equal(typeof harvest.users.listBy, 'function');
done();
});
});

describe('Retrieve a user', function() {
Expand Down

0 comments on commit 13ede23

Please sign in to comment.