{"size": 388, "ext": "js", "max_stars_repo_path": "test/index.js", "max_stars_repo_name": "nicoandmee/sms-number-verifier", "max_stars_repo_stars_event_min_datetime": "2018-06-25T04:44:03.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-14T22:50:55.000Z", "max_issues_repo_path": "test/index.js", "max_issues_repo_name": "nicoandmee/sms-number-verifier", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/index.js", "max_forks_repo_name": "nicoandmee/sms-number-verifier", "max_forks_repo_forks_event_min_datetime": "2020-03-16T02:33:37.000Z", "max_forks_repo_forks_event_max_datetime": "2020-03-16T02:33:37.000Z"}
{"max_stars_count": 6, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.8666666667, "max_line_length": 62, "alphanum_fraction": 0.6881443299}
'use strict'

const { test } = require('ava')
const validator = require('validator')

const SMSNumberVerifier = require('..')

test('basic', async (t) => {
  const smsVerifier = new SMSNumberVerifier('smsreceivefree')
  const number = await smsVerifier.getNumber()

  t.truthy(validator.isMobilePhone(number, 'en-US'))
  t.is(typeof smsVerifier.getAuthCodes, 'function')
})
