Skip to content

Commit

Permalink
test: admin.signOut() refining integration test
Browse files Browse the repository at this point in the history
1. Only clearing store and not creating an empty account object, as one is not required for `account.signOut()`.
2. Removing `id` from `account` instance, as it's not required for this test and one will be randomly assigned.
  • Loading branch information
capellini committed Aug 8, 2016
1 parent 395e60d commit 2dd965e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/integration/sign-out-not-signed-in-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ test('sign out without being signed in', function (t) {

// simulate user who has not yet signed in
store.clear()
store.setObject('account', {})

var account = new Account({
url: baseURL,
id: 'abc4567'
url: baseURL
})

account.signOut().catch(function (error) {
Expand Down

0 comments on commit 2dd965e

Please sign in to comment.