fixup! Introduce additional tests for ES6 templates

Include tests using arrow functions
This commit is contained in:
Mike Pennisi 2015-06-16 16:08:03 -04:00
parent e42f977122
commit 6863328f88
2 changed files with 18 additions and 0 deletions

View File

@ -20,3 +20,12 @@ var fn = function() {
fn()`NoSubstitutionTemplate`;
assert.sameValue(context, this);
fn = function() {
return () => { context = this; };
};
context = null;
fn()`NoSubstitutionTemplate`;
assert.sameValue(context, this);

View File

@ -20,3 +20,12 @@ var fn = function() {
fn()`NoSubstitutionTemplate`;
assert.sameValue(context, undefined);
fn = function() {
return () => { context = this; };
};
context = null;
fn()`NoSubstitutionTemplate`;
assert.sameValue(context, undefined);