diff --git a/src/Regular.js b/src/Regular.js index 24cf703..7ca769a 100644 --- a/src/Regular.js +++ b/src/Regular.js @@ -491,7 +491,7 @@ Regular.implement({ Regular.prototype.inject = function(){ _.log("use $inject instead of inject", "error"); - this.$inejct.apply(this, arguments); + this.$inject.apply(this, arguments); } diff --git a/test/spec/test-lexer.js b/test/spec/test-lexer.js index b5f553a..2dc2db3 100644 --- a/test/spec/test-lexer.js +++ b/test/spec/test-lexer.js @@ -1,4 +1,5 @@ var Lexer = require_lib("parser/Lexer.js"); +var config = require_lib("config.js"); /** * setup template @@ -67,6 +68,12 @@ describe("Lexer under mode 1 and 2", function(){ }) + it("config should work", function(){ + config.END = "}}"; + config.BEGIN = "{{"; + + }) + })