async function checkTest(validInsert, invalidInsert) {
        try {
          await knex('check_test').insert([validInsert]);
        } catch (err) {
          expect(
            err,
            `valid insert ${JSON.stringify(
              validInsert
            )} thrown error (${err.toString()}) instead of pass`
          ).to.undefined;
        }

        let res;
        try {
          res = await knex('check_test').insert([invalidInsert]);
        } catch (err) {
          expect(err).to.not.undefined;
        }
        expect(
          res,
          `invalid insert ${JSON.stringify(invalidInsert)} pass instead of fail`
        ).to.undefined;
      }
Perform a check constraint with two tests : test the check constraint don't trigger on valid insert and
test the constraint trigger on invalid insert.

@param validInsert the valid insert object.
@param invalidInsert the valid insert object.
@returns {Promise<void>}