Skip to content

Commit

Permalink
clean up some test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bewest committed Jan 26, 2014
1 parent 74eb39e commit 9a4a4ef
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/test_upload_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,10 @@ function createClient (opts) {
return client.post(url, update, fn);
}
function createUser (name, update, fn) {
var params = '?name=' + update.handle;
+ '&email=' + update.email;
var url = '/users/' + name + '/create' + params;
var url = '/users/' + name + '/create';// + params;
return client.post(url, update, fn);
}
function download (url, fn) {
// console.log("DOWNLOADING", url);
url = url.replace('http://localhost', '');
url = url.replace('http:/localhost', '');
// console.log("URL", url);
Expand Down Expand Up @@ -468,11 +465,14 @@ describe("restify-git-json server", function ( ) {
var author = { name: "Bar Update", email: "updated@tidepool.io" };
update.user.user = author;
update.user.author = author;
// update.user.name = "Updated Name";
// update.user.email = "updated@email.com";
update.user.data = { custom: 'property' };
update.user.user = JSON.parse(JSON.stringify(update.user))
name = update.name;
client.updateUser(name, update.user, function (err, req, res, result) {
// console.log("UPDATED", result);
(err === null).should.be.ok;
result.name.should.equal(name);
result.user.name.should.equal(update.user.name)
result.user.data.should.be.ok;
Expand All @@ -484,15 +484,9 @@ describe("restify-git-json server", function ( ) {
}

function testUploadContent (profile, fn) {
// describe("uploaded content", function ( ) {
// console.log("YYYY");
// it('user should be able to upload content into git', function ( ) {
client.uploadContent(profile, 'test', function (err, results) {
// console.log("UPLOADED", results);
fn(err, results);
});
//});
// });
}

it('should 404 non-existent users', function (done) {
Expand Down

0 comments on commit 9a4a4ef

Please sign in to comment.