Skip to content

Commit

Permalink
refactor: fix typo in private test method
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Jan 8, 2020
1 parent 187d611 commit d7f0dcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/env/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ HandlebarsTestBench.prototype.withMessage = function(message) {
};

HandlebarsTestBench.prototype.toCompileTo = function(expectedOutputAsString) {
expect(this._compileAndExeute()).to.equal(expectedOutputAsString);
expect(this._compileAndExecute()).to.equal(expectedOutputAsString);
};

// see chai "to.throw" (https://www.chaijs.com/api/bdd/#method_throw)
Expand All @@ -178,11 +178,11 @@ HandlebarsTestBench.prototype.toThrow = function(
) {
var self = this;
expect(function() {
self._compileAndExeute();
self._compileAndExecute();
}).to.throw(errorLike, errMsgMatcher, msg);
};

HandlebarsTestBench.prototype._compileAndExeute = function() {
HandlebarsTestBench.prototype._compileAndExecute = function() {
var compile =
Object.keys(this.partials).length > 0
? CompilerContext.compileWithPartial
Expand Down

0 comments on commit d7f0dcf

Please sign in to comment.