<commit_before>var test = require('tape')
var load = require('../')

test('load an actual script', function(t) {
  load('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', function(err) {
    t.ifError(err)
    t.ok(window.$)
    t.end()
  })
})

test('provide an error with the incorrect script', function(t) {
  load('non-existent.js', function(err) {
    t.ok(err)
    t.end()
  })
})<commit_msg>try different failing test URL<commit_after>var test = require('tape')
var load = require('../')

test('load an actual script', function(t) {
  load('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', function(err) {
    t.ifError(err)
    t.ok(window.$)
    t.end()
  })
})

test('provide an error with the incorrect script', function(t) {
  load('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery-bogus.min.js', function(err) {
    t.ok(err)
    t.end()
  })
})
{'fraction_non_alphanumeric': 0.20293122886133033, 'fraction_numerical': 0.013528748590755355, 'mean_word_length': 3.4623115577889445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2428303', 'n_tokens_mistral': 344, 'n_tokens_neox': 331, 'n_words': 60}