Skip to content

Commit 12d4d63

Browse files
committed
fixup: ...
1 parent 29f6ab1 commit 12d4d63

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
@@ -277,11 +277,15 @@ describe('AsyncWriter', function () {
277277
});
278278

279279
it('keeps `this` intact for function calls', function () {
280-
expect('({ foo: 42, method() { return this } }).method().foo').to.equal(
281-
42
282-
);
283280
expect(
284-
'({ foo: 42, method() { return this } })["method"]().foo'
281+
runTranspiledCode(
282+
'({ foo: 42, method() { return this } }).method().foo'
283+
)
284+
).to.equal(42);
285+
expect(
286+
runTranspiledCode(
287+
'({ foo: 42, method() { return this } })["method"]().foo'
288+
)
285289
).to.equal(42);
286290
});
287291
});

0 commit comments

Comments
 (0)