Skip to content

Commit a2d21a4

Browse files
committed
fixup: ...
1 parent 1dec02a commit a2d21a4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/async-rewriter2/src/async-writer-babel.spec.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,15 @@ describe('AsyncWriter', function () {
290290
});
291291

292292
it('keeps `this` intact for function calls', function () {
293-
expect('({ foo: 42, method() { return this } }).method().foo').to.equal(
294-
42
295-
);
296293
expect(
297-
'({ foo: 42, method() { return this } })["method"]().foo'
294+
runTranspiledCode(
295+
'({ foo: 42, method() { return this } }).method().foo'
296+
)
297+
).to.equal(42);
298+
expect(
299+
runTranspiledCode(
300+
'({ foo: 42, method() { return this } })["method"]().foo'
301+
)
298302
).to.equal(42);
299303
});
300304
});

0 commit comments

Comments
 (0)