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 2, 2020
1 parent f11a9cb commit 1a9cf98
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 1a9cf98

Please sign in to comment.