{"size": 196, "ext": "js", "max_stars_repo_path": "test.js", "max_stars_repo_name": "hemanth/data-uri-type", "max_stars_repo_stars_event_min_datetime": "2016-06-21T12:50:34.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-19T02:57:20.000Z", "max_issues_repo_path": "test.js", "max_issues_repo_name": "hemanth/data-uri-type", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test.js", "max_forks_repo_name": "hemanth/data-uri-type", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.5, "max_line_length": 59, "alphanum_fraction": 0.6530612245}
import test from 'ava';
import fn from './';

test('Must extract the mime-type of data-uri', async t => {
  const res = fn('data:image/png;base64,iVBORw0KGgo')
  t.is(await res, 'image/png');
});
