We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3b100 commit dd6902eCopy full SHA for dd6902e
async.test.js
@@ -844,5 +844,21 @@ modes.forEach((logic) => {
844
)
845
).toBe('hello'.toString)
846
})
847
+
848
+ test('async + deterministic function', async () => {
849
+ logic.addMethod('test', async () => '1337', { deterministic: true })
850
+ expect(
851
+ await logic.run({
852
+ test: true
853
+ })
854
+ ).toBe('1337')
855
856
857
+ test('async + determistic function inside array', async () => {
858
859
860
+ await logic.run([{ test: true }, { test: true }])
861
+ ).toStrictEqual(['1337', '1337'])
862
863
864
0 commit comments