Skip to content

Commit c04acbd

Browse files
authored
Update testTable.js
1 parent 3084877 commit c04acbd

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

test/testTable.js

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -11,57 +11,6 @@ aws.config.update({ accessKeyId: "localAccessKey", secretAccessKey: "localSecret
1111
var db = new aws.DynamoDB({ endpoint: 'http://localhost:8000' });
1212

1313
describe("Check Table operations", function() {
14-
describe("#create table", function() {
15-
this.timeout(50000);
16-
it("should create a table if not existing", function(done) {
17-
var params = {
18-
TableName : "Movies",
19-
KeySchema: [
20-
{ AttributeName: "year", KeyType: "HASH"}, //Partition key
21-
{ AttributeName: "title", KeyType: "RANGE" } //Sort key
22-
],
23-
AttributeDefinitions: [
24-
{ AttributeName: "year", AttributeType: "N" },
25-
{ AttributeName: "title", AttributeType: "S" },
26-
{ AttributeName: "info", AttributeType: "S"}
27-
],
28-
ProvisionedThroughput: {
29-
ReadCapacityUnits: 1,
30-
WriteCapacityUnits: 1
31-
}
32-
};
33-
34-
var create = db.createTable(params, function(err, data) {
35-
if (err) {
36-
should.not.exist(err);
37-
} else {
38-
should.exist(data);
39-
data.TableDescription.should.have.property("TableName","Movies");
40-
assert.isNumber(data.TableDescription.ProvisionedThroughput.WriteCapacityUnits);
41-
42-
}
43-
done();
44-
});
45-
});
46-
});
47-
48-
describe("#delete table", function(){
49-
this.timeout(50000);
50-
it("should delete the table", function(done){
51-
var params = {"TableName":"Movies"};
52-
53-
db.deleteTable(params,function(err,data){
54-
if (err){
55-
should.not.exist(err);
56-
assert.isNull(data);
57-
} else {
58-
should.exist(data);
59-
}
60-
done();
61-
});
62-
});
63-
});
64-
6514
describe("#update table", function(){
6615
this.timeout(50000);
6716
it("should update the table", function(done){

0 commit comments

Comments
 (0)