Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed May 3, 2017
1 parent acfb1ce commit e685a25
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/babel-types/test/converters.js
Expand Up @@ -195,8 +195,8 @@ describe("converters", function () {
it("gathers var declarations", function () {
const node = parseCode("var a, b = 1;");
const sequence = t.toSequenceExpression([undefinedNode, node], scope);
t.assertIdentifier(scope[0].id, {name: "a"})
t.assertIdentifier(scope[1].id, {name: "b"})
t.assertIdentifier(scope[0].id, { name: "a" });
t.assertIdentifier(scope[1].id, { name: "b" });
assert.equal(generateCode(sequence.expressions[1]), "b = 1");
assert.equal(generateCode(sequence.expressions[2]), "undefined");
});
Expand Down Expand Up @@ -242,13 +242,13 @@ describe("converters", function () {
assert.equal(generateCode(sequence.expressions[1]), "a, b");
});
it("bails in block statements if recurse bails", function () {
let node = parseCode("{ return }");
let sequence = t.toSequenceExpression([undefinedNode, node], scope);
const node = parseCode("{ return }");
const sequence = t.toSequenceExpression([undefinedNode, node], scope);
assert.isUndefined(sequence);
});
it("gathers empty statements", function () {
let node = parseCode(";");
let sequence = t.toSequenceExpression([undefinedNode, node], scope);
const node = parseCode(";");
const sequence = t.toSequenceExpression([undefinedNode, node], scope);
assert.equal(generateCode(sequence.expressions[1]), "undefined");
});
it("skips empty statement if expression afterwards", function () {
Expand Down

0 comments on commit e685a25

Please sign in to comment.