* fix: hoist variable declaration within do block * test: add input for variable-declaration-start * test: actually write a test for this issue * make prettier happy
8 lines
89 B
JavaScript
8 lines
89 B
JavaScript
expect(
|
|
do {
|
|
var bar = "foo";
|
|
bar;
|
|
}
|
|
).toBe("foo");
|
|
expect(bar).toBe("foo");
|