<commit_before>process.env.NODE_ENV = 'production'
request = require 'request'

app = require('connect').createServer()
assets = require('../lib/assets.js')
app.use assets src: 'http://mycdn.com'
app.listen 3590

exports['options.src can be a URL'] = (test) ->
  jsTag = "<script src='http://mycdn.com/js/jquery.min.js'></script>"
  test.equals js('jquery.min.js'), jsTag
  test.done()

exports['If options.src is a URL, other URLs are still allowed'] = (test) ->
  jsTag = "<script src='//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.1.7/underscore-min.js'></script>"<commit_msg>No need to actually listen on a port for these tests<commit_after>process.env.NODE_ENV = 'production'
request = require 'request'

app = require('connect').createServer()
assets = require('../lib/assets.js')
app.use assets src: 'http://mycdn.com'

exports['options.src can be a URL'] = (test) ->
  jsTag = "<script src='http://mycdn.com/js/jquery.min.js'></script>"
  test.equals js('jquery.min.js'), jsTag
  test.done()

exports['If options.src is a URL, other URLs are still allowed'] = (test) ->
  jsTag = "<script src='//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.1.7/underscore-min.js'></script>"
{'fraction_non_alphanumeric': 0.19123841617523168, 'fraction_numerical': 0.008424599831508003, 'mean_word_length': 4.4, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '3602253', 'n_tokens_mistral': 426, 'n_tokens_neox': 406, 'n_words': 91}