Imagine you are using a fluent API. What would you...
# test
r
Imagine you are using a fluent API. What would you prefer, an API which incorporates articles or one without? e.g.
expect(path).toBeADirectory()
vs.
expect(path).toBeDirectory()
c
what about expect(…).isADirectory?
r
in other words you prefer articles, right?
j
isDirectory for me
Kotest has a nice syntax, take a look to it
c
isXX is about discoverability for me
i just type is and then command space
r
@Javier kotest has
shouldBeADirectory()
😉
j
Ah, I didn't know that. I don't remember an assertion I have used with that
isXX vs isAXX have the same autocomplete suggestions no?
c
yes, for isADirectory. but if i type is… i get isEqual. isNot… just everything