How to use the should.strictEqual function in should

To help you get started, we’ve selected a few should examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oracle / node-oracledb / test / rowidDMLBindAsString.js View on Github external
function(err, result) {
        should.not.exist(err);
        var resultVal;
        if (typeof (result.outBinds.o) === 'undefined') resultVal = result.outBinds[0][0];
        else resultVal = result.outBinds.o[0];
        should.strictEqual(resultVal, expected);
        // should.strictEqual(typeof resultVal, "string");
        callback();
      }
    );
github oracle / node-oracledb / test / urowidDMLBindAsString1.js View on Github external
function(err, result) {
        should.not.exist(err);
        var resultVal;
        if (typeof (result.outBinds.o) === 'undefined') resultVal = result.outBinds[0][0];
        else resultVal = result.outBinds.o[0];
        should.strictEqual(resultVal, expected);
        // should.strictEqual(typeof resultVal, "string");
        callback();
      }
    );
github oracle / node-oracledb / test / longProcedureBind_in.js View on Github external
function(err, result) {
        should.not.exist(err);
        should.strictEqual(result.rows[0][0], insertID);
        should.strictEqual(result.rows[0][1], expected);
        callback();
      }
    );
github oracle / node-oracledb / test / longProcedureBind_inout.js View on Github external
function(err, result) {
        should.not.exist(err);
        var expected = insertContent;
        if(insertContent == "" || insertContent == undefined) {
          expected = null;
        }
        should.strictEqual(result.outBinds.c, expected);
        callback();
      }
    );

should

test framework agnostic BDD-style assertions

MIT
Latest version published 6 years ago

Package Health Score

61 / 100
Full package analysis