Nicolò Ribaudo ea6a438315
Enable external-helpers by default in tests (#12911)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-02-26 23:33:26 +01:00

18 lines
486 B
JavaScript

var _templateObject, _templateObject2;
var tag = v => v;
function foo() {
return tag(_templateObject || (_templateObject = babelHelpers.taggedTemplateLiteral(["some template"])));
}
function bar() {
return tag(_templateObject2 || (_templateObject2 = babelHelpers.taggedTemplateLiteral(["some template"])));
}
expect(foo()).toBe(foo());
expect(foo()).toEqual(["some template"]);
expect(bar()).toBe(bar());
expect(bar()).toEqual(["some template"]);
expect(bar()).not.toBe(foo());