Skip to content

Commit

Permalink
test: enable tests for #37, #38, #39
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jul 19, 2016
1 parent b3e0da1 commit 19418f1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,36 +233,38 @@ describe('hoodie.account', function () {
})
})

it.skip('.fetch() resolves with account properties (hoodie-account#37)', function () {
it('.fetch() resolves with account properties', function () {
return this.client

.executeAsync(function fetch (done) {
hoodie.account.fetch().then(done, done)
}).then(toValue)
.then(function (account) {
expect(account.username).to.equal(newUsername)
expect(account.id).to.match(/^\w+$/)
expect(Object.keys(account).sort()).to.deep.equal(['id', 'username'])
})
})

it.skip('.profile.update() resolves with profile properties (hoodie-account#38)', function () {
it('.profile.update() resolves with profile properties', function () {
return this.client

.executeAsync(function fetch (done) {
hoodie.account.profile.update({foo: 'bar'}).then(done, done)
}).then(toValue)
.then(function (profile) {
expect(profile.foo).to.equal('bar')
expect(profile).to.deep.equal({foo: 'bar'})
})
})

it.skip('.profile.fetch() resolves with profile properties (hoodie-account#39)', function () {
it('.profile.fetch() resolves with profile properties', function () {
return this.client

.executeAsync(function fetch (done) {
hoodie.account.fetch().then(done, done)
hoodie.account.profile.fetch().then(done, done)
}).then(toValue)
.then(function (profile) {
expect(profile).to.deep.equal({})
expect(profile).to.deep.equal({foo: 'bar'})
})
})

Expand Down

0 comments on commit 19418f1

Please sign in to comment.