Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
fix typo: "Tennant" should be "Tenant"
Browse files Browse the repository at this point in the history
  • Loading branch information
typerandom committed Sep 14, 2016
1 parent 2e56dd5 commit 4204769
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/sp.client_test.js
Expand Up @@ -1023,7 +1023,7 @@ describe('Client', function () {

describe('call to get id sites', function () {
var sandbox, cbSpy, err, app, client, tenant, getCurrentTenantStub,
getTennantIdSites, returnError;
getTenantIdSites, returnError;

before(function (done) {
sandbox = sinon.sandbox.create();
Expand All @@ -1047,7 +1047,7 @@ describe('Client', function () {
cb(null, tenant);
});

getTennantIdSites = sandbox.stub(tenant, 'getIdSites', function(options, cb) {
getTenantIdSites = sandbox.stub(tenant, 'getIdSites', function(options, cb) {
cb();
});

Expand All @@ -1064,12 +1064,12 @@ describe('Client', function () {
client.getIdSites(cbSpy);
client.getIdSites({}, cbSpy);

getTennantIdSites.should.have.been.calledWith(null, cbSpy);
getTennantIdSites.should.have.been.calledWith({}, cbSpy);
getTenantIdSites.should.have.been.calledWith(null, cbSpy);
getTenantIdSites.should.have.been.calledWith({}, cbSpy);

/* jshint -W030 */
getCurrentTenantStub.should.have.been.calledTwice;
getTennantIdSites.should.have.been.calledTwice;
getTenantIdSites.should.have.been.calledTwice;
/* jshint +W030 */
});

Expand All @@ -1079,7 +1079,7 @@ describe('Client', function () {
cbSpy.should.have.been.calledWith(err);
/* jshint -W030 */
getCurrentTenantStub.should.have.been.calledThrice;
getTennantIdSites.should.have.been.calledTwice;
getTenantIdSites.should.have.been.calledTwice;
/* jshint +W030 */
});
});
Expand Down

0 comments on commit 4204769

Please sign in to comment.