azure-table
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -1659,2 +1659,16 @@ | ||
); | ||
}, | ||
createTable: function() { | ||
var req = this.request('POST', 'Tables'); | ||
req.send({ TableName: this.table }); | ||
return req; | ||
}, | ||
deleteTable: function() { | ||
return this.request( | ||
'DELETE', | ||
'Tables(\'' + this.table + '\')' | ||
); | ||
} | ||
@@ -1661,0 +1675,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"description": "Azure table interface", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"keywords": [], | ||
@@ -8,0 +8,0 @@ "dependencies": { |
{ | ||
"name": "azure-table", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Simplified azure table service client for node and the browser.", | ||
@@ -5,0 +5,0 @@ "main": "node.js", |
@@ -25,2 +25,19 @@ suite('request', function() { | ||
suite('#createTable/deleteTable', function() { | ||
var tableName = 'magiclyDeleteCreateTable_' + Date.now(); | ||
setup(function() { | ||
return subject.createTable(); | ||
}); | ||
test('delete table', function() { | ||
// create an entity... | ||
return subject.insertEntity(entity). | ||
end(). | ||
then(function() { | ||
return subject.deleteTable(); | ||
}); | ||
}); | ||
}); | ||
suite('#getEntity / #insertEntity', function() { | ||
@@ -27,0 +44,0 @@ setup(function() { |
@@ -185,2 +185,16 @@ /** | ||
); | ||
}, | ||
createTable: function() { | ||
var req = this.request('POST', 'Tables'); | ||
req.send({ TableName: this.table }); | ||
return req; | ||
}, | ||
deleteTable: function() { | ||
return this.request( | ||
'DELETE', | ||
'Tables(\'' + this.table + '\')' | ||
); | ||
} | ||
@@ -187,0 +201,0 @@ }; |
@@ -5,3 +5,3 @@ var URL = require('url'); | ||
var tableService = azure.createTableService(); | ||
var config = require('./config'); | ||
var config = require('./config/defaults'); | ||
var express = require('express'); | ||
@@ -8,0 +8,0 @@ var cors = require('cors'); |
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
391862
11922