bromote
Version:
Tool to setup and require remote scripts with browserify.
22 lines (16 loc) • 551 B
JavaScript
;
/*jshint asi: true */
var test = require('tape')
var bromote = require('../..')
test('\nremote backbone, then jquery and underscore', function (t) {
t.plan(3)
bromote.backbone(function (backbone) {
t.equal(typeof backbone, 'object', 'pulls backbone from remote url')
bromote.jquery(function ($) {
t.equal(backbone.$, $, 'backbone $ is same as $ we get when we bromote jquery')
})
bromote.underscore(function (_) {
t.equal(typeof _, 'function', 'pulls underscore from remote url')
})
});
})