Skip to content

Commit f4880c0

Browse files
committed
failing test
1 parent 036feec commit f4880c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

async.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,17 @@ modes.forEach((logic) => {
826826
).toBe(null)
827827
})
828828

829+
test('allow access to objects named as their methods', async () => {
830+
expect(
831+
await logic.run(
832+
{
833+
var: 'toString'
834+
},
835+
{toString: 'hello'}
836+
)
837+
).toBe("hello")
838+
})
839+
829840
test('allow access to functions on objects when enabled', async () => {
830841
logic.allowFunctions = true
831842
expect(

0 commit comments

Comments
 (0)