{"size": 487, "ext": "js", "max_stars_repo_path": "packages/sg0/test/extend.test.js", "max_stars_repo_name": "briancsparks/ra-ecosystem", "max_stars_repo_stars_event_min_datetime": "2019-08-15T19:46:32.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-15T19:46:32.000Z", "max_issues_repo_path": "packages/sg0/test/extend.test.js", "max_issues_repo_name": "briancsparks/ra-ecosystem", "max_issues_repo_issues_event_min_datetime": "2019-08-15T19:52:12.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-23T01:27:24.000Z", "max_forks_repo_path": "packages/sg0/test/extend.test.js", "max_forks_repo_name": "briancsparks/ra-ecosystem", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 8, "max_forks_count": null, "avg_line_length": 21.1739130435, "max_line_length": 50, "alphanum_fraction": 0.5174537988}

const sg                      = require('..');
const test                    = require('ava');

test('works', t => {
  t.pass();
});

test('sg.extend basic use case', t => {
  const result = sg.extend({}, {key:'value'});

  t.deepEqual(result, {key: 'value'});
});

test('sg.extend basic use case, safe', t => {
  const other  = {one: 'two'};
  const result = sg.extend(other, {key:'value'});

  t.deepEqual(result, {one: 'two', key: 'value'});
  t.deepEqual(other, {one: 'two'});
});

