Skip to content

Commit 61da616

Browse files
committed
fix: order of t.is args
1 parent 3163920 commit 61da616

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ testProp(
8383

8484
for (let i = 0; i < 10; i++) {
8585
t.is(
86-
fn(),
87-
iterator.getNextOr(() => fn())
86+
iterator.getNextOr(() => fn()),
87+
fn()
8888
)
8989
}
9090
}
@@ -127,8 +127,8 @@ test(`Betterator concrete example`, t => {
127127
})
128128

129129
t.is(
130-
42,
131-
iterator.getNextOr(() => 42)
130+
iterator.getNextOr(() => 42),
131+
42
132132
)
133133
})
134134

@@ -184,7 +184,7 @@ testProp(
184184
}
185185

186186
for (let i = 0; i < 10; i++) {
187-
t.is(await fn(), await asyncIterator.getNextOr(() => fn()))
187+
t.is(await asyncIterator.getNextOr(() => fn()), await fn())
188188
}
189189
}
190190
)
@@ -225,5 +225,5 @@ test(`AsyncBetterator concrete example`, async t => {
225225
message: `Doesn't have next`
226226
})
227227

228-
t.is(42, await asyncIterator.getNextOr(() => delay(1).then(() => 42)))
228+
t.is(await asyncIterator.getNextOr(() => delay(1).then(() => 42)), 42)
229229
})

0 commit comments

Comments
 (0)