const test = require('tape')
const loadGoogleMapsAPI = require('./')

test('loads the API', function (t) {
  t.plan(1)
  loadGoogleMapsAPI().then(t.ok, t.fail)
})

const test = require('tape')
const loadGoogleMapsAPI = require('./')

test('resolves the promise to the `googleMaps` object', function (t) {
  t.plan(1)
  loadGoogleMapsAPI().then(function (googleMaps) {
    t.true(typeof googleMaps.Map === 'function')
  }, t.fail)
})

Edit test.js