added angular to the scripts, which is sweet\!
This commit is contained in:
@ -60,6 +60,9 @@
|
||||
"url": "http://github.com/elasticsearch/elasticsearch-js.git"
|
||||
},
|
||||
"testling": {
|
||||
"scripts": [
|
||||
"test/unit/angular-*.js"
|
||||
],
|
||||
"files": [
|
||||
"test/unit/test_!(file_logger|http_connector|stdio_logger|console_logger|stream_logger|tracer_logger|transport_with_server)*",
|
||||
"test/unit/browser_test_*.js"
|
||||
@ -84,7 +87,6 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "grunt test",
|
||||
"browser_tests": "browserify test/unit/run_browser_builds.js | testling --harness=mocha -u",
|
||||
"blanket": {
|
||||
"pattern": "src"
|
||||
}
|
||||
|
||||
@ -5,17 +5,8 @@ var expect = require('expect.js');
|
||||
var Client = require('../../src/lib/client');
|
||||
|
||||
describe('Angular esFactory', function () {
|
||||
before(function (done) {
|
||||
// inject angular
|
||||
var scr = document.createElement('script');
|
||||
scr.src = '//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.5/angular.js';
|
||||
scr.async = true;
|
||||
scr.onload = function () {
|
||||
before(function () {
|
||||
require('../../src/elasticsearch.angular.js');
|
||||
done();
|
||||
};
|
||||
scr.type = 'text/javascript';
|
||||
document.getElementsByTagName('head')[0].appendChild(scr);
|
||||
});
|
||||
|
||||
var uuid = (function () { var i = 0; return function () { return ++i; }; }());
|
||||
|
||||
Reference in New Issue
Block a user