freshbooks-classic
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -35,3 +35,6 @@ "use strict"; | ||
// this.tax = require('./api/tax')({http}) | ||
// this.timeEntry = require('./api/time-entry')({http}) | ||
this.terms = require('./api/terms')({ | ||
http | ||
}); // this.timeEntry = require('./api/time-entry')({http}) | ||
} | ||
@@ -38,0 +41,0 @@ |
{ | ||
"name": "freshbooks-classic", | ||
"description": "FreshBooks Classic API wrapper", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"author": "Leonardo Dino", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -61,2 +61,3 @@ # freshbooks-classic | ||
- [ ] `FreshBooks.tax` | ||
- [x] `FreshBooks.terms` | ||
- [ ] `FreshBooks.timeEntry` | ||
@@ -63,0 +64,0 @@ - [ ] cleanup excess obscurity |
@@ -22,2 +22,3 @@ import FreshBooksFetch from './utils/fetch' | ||
// this.tax = require('./api/tax')({http}) | ||
this.terms = require('./api/terms')({http}) | ||
// this.timeEntry = require('./api/time-entry')({http}) | ||
@@ -24,0 +25,0 @@ } |
@@ -7,5 +7,5 @@ import _ from 'lodash' | ||
let client_id = null | ||
let email = 'freshbooks-classic@dispostable.com' | ||
let first_name = 'abc' | ||
let last_name = 'xyz' | ||
const email = 'freshbooks-classic@dispostable.com' | ||
const first_name = 'abc' | ||
const last_name = 'xyz' | ||
@@ -97,5 +97,9 @@ test.serial('create', async t => { | ||
t.true(result, 'returns true') | ||
const fn = () => client.get({client_id}) | ||
const e = await t.throws(fn, `'client_id' not found. Client is deleted.`) | ||
t.is(e.code, 50010) | ||
}) | ||
test.serial('throw failures', async t => { | ||
test('throw failures', async t => { | ||
const {client} = new FreshBooks(url, token) | ||
@@ -102,0 +106,0 @@ await Promise.all([ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92336
42
1546
94