refactor: fix typo in private test method

This commit is contained in:
Nils Knappmeier
2020-01-02 15:49:41 +01:00
committed by Nils Knappmeier
parent 187d611e8c
commit d7f0dcf2bb
+3 -3
View File
@@ -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)
@@ -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