How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • const assert = require('assert/strict');
    
    assert.throws(
      () => {
        throw new Error('Wrong value');
      },
      Error
    );
    Docs
  • import assert from 'assert/strict';
    
    assert.throws(
      () => {
        throw new Error('Wrong value');
      },
      /^Error: Wrong value$/
    );
    Docs
  • const assert = require('assert/strict');
    
    assert.doesNotThrow(
      () => {
        throw new TypeError('Wrong value');
      },
      /Wrong value/,
      'Whoops'
    );
    // Throws: AssertionError: Got unwanted exception: Whoops
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples