summaryrefslogtreecommitdiffstats
path: root/spec/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-04-16 15:42:46 -0500
committerkpdecker <kpdecker@gmail.com>2015-04-16 16:43:01 -0500
commite3d3eda2e1e03e997d417affc09974446b4ca701 (patch)
treea6513f267482b1693fd002c20488c6e92095ff2b /spec/compiler.js
parent2a02261a5bc78f246c63dd8d467a12f2c1f63734 (diff)
downloadhandlebars.js-e3d3eda2e1e03e997d417affc09974446b4ca701.zip
handlebars.js-e3d3eda2e1e03e997d417affc09974446b4ca701.tar.gz
handlebars.js-e3d3eda2e1e03e997d417affc09974446b4ca701.tar.bz2
Add full support for es6
Converts the tool chain to use babel, eslint, and webpack vs. the previous proprietary solutions. Additionally begins enforcing additional linting concerns as well as updates the code to reflect these rules. Fixes #855 Fixes #993
Diffstat (limited to 'spec/compiler.js')
-rw-r--r--spec/compiler.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/compiler.js b/spec/compiler.js
index f9eba28..fe4b63a 100644
--- a/spec/compiler.js
+++ b/spec/compiler.js
@@ -1,5 +1,3 @@
-/*global Handlebars, shouldThrow */
-
describe('compiler', function() {
if (!Handlebars.compile) {
return;
@@ -41,10 +39,10 @@ describe('compiler', function() {
});
it('can utilize AST instance', function() {
- equal(Handlebars.compile(new Handlebars.AST.Program([ new Handlebars.AST.ContentStatement("Hello")], null, {}))(), 'Hello');
+ equal(Handlebars.compile(new Handlebars.AST.Program([ new Handlebars.AST.ContentStatement('Hello')], null, {}))(), 'Hello');
});
- it("can pass through an empty string", function() {
+ it('can pass through an empty string', function() {
equal(Handlebars.compile('')(), '');
});
});
@@ -60,10 +58,10 @@ describe('compiler', function() {
});
it('can utilize AST instance', function() {
- equal(/return "Hello"/.test(Handlebars.precompile(new Handlebars.AST.Program([ new Handlebars.AST.ContentStatement("Hello")]), null, {})), true);
+ equal(/return "Hello"/.test(Handlebars.precompile(new Handlebars.AST.Program([ new Handlebars.AST.ContentStatement('Hello')]), null, {})), true);
});
- it("can pass through an empty string", function() {
+ it('can pass through an empty string', function() {
equal(/return ""/.test(Handlebars.precompile('')), true);
});
});