rename setup and teardown functions of oauth addon

This commit is contained in:
Girish Ramakrishnan
2015-10-07 15:55:57 -07:00
parent bf4290db3e
commit fbdfaa4dc7
2 changed files with 12 additions and 12 deletions

View File

@@ -136,21 +136,21 @@ describe('apptask', function () {
});
it('allocate OAuth credentials', function (done) {
addons._allocateOAuthCredentials(APP, function (error) {
addons._setupOauth(APP, function (error) {
expect(error).to.be(null);
done();
});
});
it('remove OAuth credentials', function (done) {
addons._removeOAuthCredentials(APP, function (error) {
addons._teardownOauth(APP, function (error) {
expect(error).to.be(null);
done();
});
});
it('remove OAuth credentials twice succeeds', function (done) {
addons._removeOAuthCredentials(APP, function (error) {
addons._teardownOauth(APP, function (error) {
expect(!error).to.be.ok();
done();
});