fix event removal in diff

fix CI
This commit is contained in:
Leo Horie 2016-08-12 22:08:02 -04:00
parent fc9d4f2ee4
commit 6c3036e5c6
10 changed files with 37 additions and 67 deletions

View file

@ -1,9 +1,10 @@
"use strict"
var buildQueryString = require("../querystring/build")
var Stream = require("../util/stream")
var StreamFactory = require("../util/stream")
module.exports = function($window) {
module.exports = function($window, log) {
var Stream = StreamFactory(log)
var callbackCount = 0
var oncompletion

View file

@ -6,10 +6,11 @@ var Request = require("../../request/request")
var parseQueryString = require("../../querystring/parse")
o.spec("jsonp", function() {
var mock, jsonp
var mock, jsonp, spy
o.beforeEach(function() {
mock = xhrMock()
jsonp = new Request(mock).jsonp
spy = o.spy()
jsonp = new Request(mock, spy).jsonp
})
o("works", function(done) {

View file

@ -5,10 +5,11 @@ var xhrMock = require("../../test-utils/xhrMock")
var Request = require("../../request/request")
o.spec("xhr", function() {
var mock, xhr
var mock, xhr, spy
o.beforeEach(function() {
mock = xhrMock()
xhr = new Request(mock).xhr
spy = o.spy()
xhr = new Request(mock, spy).xhr
})
o.spec("success", function() {