thiagodp / codeceptjs-dbhelper

📜 Let your CodeceptJS tests talk to databases
MIT License
9 stars 1 forks source link

How to create custom assertions? #10

Closed ansonliao closed 3 years ago

ansonliao commented 3 years ago

Dear @thiagodp , thanks for your great work on this helpful plugin for CodeceptJS and I would like to create my custom assertion, could you kindly help to provide the tutorial on this? Thanks.

thiagodp commented 3 years ago

Hello @ansonliao,

you mean assertions for query/command results, right? What do you have in mind (for instance)?

BTW, there is an assertion library for CodeceptJS with Chai that can help to compare things.

ansonliao commented 3 years ago

Hi @thiagodp , I think I created the wrong issue for you, yes I should create this question in CodeceptJS with Chai, I am very sorry for my fault.

thiagodp commented 3 years ago

Hi, @ansonliao, no problem. 👍