Comparing version 0.8.0 to 0.8.1
@@ -19,3 +19,3 @@ /** | ||
//Add special call queue sub resources | ||
resourceApi.members = ListInstanceResource(client, sid, 'Queues/Members', | ||
resourceApi.members = ListInstanceResource(client, accountSid, 'Queues/' + sid + '/Members', | ||
['GET', 'POST', {update:'POST'}], | ||
@@ -22,0 +22,0 @@ ['GET'] |
{ | ||
"name":"twilio", | ||
"description":"A Twilio helper library", | ||
"version":"0.8.0", | ||
"version":"0.8.1", | ||
"author":"Kevin Whinnery <kevin.whinnery@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors":[ |
@@ -19,13 +19,5 @@ var config = require('../config'), | ||
it('gets all usage records for the last month', function(done) { | ||
var now = new Date(); | ||
client.usage.records.lastMonth.list(function(err, data) { | ||
data.usageRecords.forEach(function(record) { | ||
if (now.getMonth() === 0) { | ||
expect(record.startDate.getMonth()).toBe(11); | ||
} | ||
else { | ||
expect(now.getMonth()).toBeGreaterThan(record.startDate.getMonth()); | ||
} | ||
}); | ||
expect(data.usageRecords.length).toBeDefined(); | ||
expect(err).toBeFalsy(); | ||
done(); | ||
@@ -32,0 +24,0 @@ }); |
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
6841493
41
1624