import assert from 'assert';

export default function assertion(result, assert = assert) {
  return {
    equal: assert.equal.bind(null, result),
    notEqual: assert.notEqual.bind(null, result),
    ok: assert.ok.bind(null, result)
  };
}

import assert from 'assert';

export default function assertion(result, assertion = assert) {
  return {
    equal: assertion.equal.bind(null, result),
    notEqual: assertion.notEqual.bind(null, result),
    ok: assertion.ok.bind(null, result)
  };
}

Fix an issue where assert is not defined
Fix an issue where assert is not defined
