From d7f0dcf2bb91a1d27961941995d75c9800efc7ba Mon Sep 17 00:00:00 2001 From: Nils Knappmeier Date: Thu, 2 Jan 2020 15:49:41 +0100 Subject: [PATCH] refactor: fix typo in private test method --- spec/env/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/env/common.js b/spec/env/common.js index 64451fee4..0ecebcf45 100644 --- a/spec/env/common.js +++ b/spec/env/common.js @@ -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