js: Remove trailing whitespace

This commit is contained in:
Stein Magnus Jodal 2012-12-04 09:05:52 +01:00
parent b807c38b01
commit 43316babcd

View File

@ -156,7 +156,7 @@ buster.testCase("Mopidy", {
"is called when the state changes to offline": function () { "is called when the state changes to offline": function () {
var stub = this.stub(this.mopidy, "_reconnect"); var stub = this.stub(this.mopidy, "_reconnect");
this.mopidy._delegateEvents(); this.mopidy._delegateEvents();
this.mopidy.emit("state:offline"); this.mopidy.emit("state:offline");
assert.calledOnceWith(stub); assert.calledOnceWith(stub);
@ -334,13 +334,13 @@ buster.testCase("Mopidy", {
this.mopidy._webSocket.readyState = WebSocket.CONNECTING; this.mopidy._webSocket.readyState = WebSocket.CONNECTING;
var promise = this.mopidy._send({method: "foo"}); var promise = this.mopidy._send({method: "foo"});
refute.called(this.mopidy._webSocket.send); refute.called(this.mopidy._webSocket.send);
promise.then(done(function () { promise.then(done(function () {
assert(false); assert(false);
}), done(function (error) { }), done(function (error) {
assert.equals( assert.equals(
error.message, "WebSocket is still connecting"); error.message, "WebSocket is still connecting");
})); }));
}, },
@ -348,13 +348,13 @@ buster.testCase("Mopidy", {
this.mopidy._webSocket.readyState = WebSocket.CLOSING; this.mopidy._webSocket.readyState = WebSocket.CLOSING;
var promise = this.mopidy._send({method: "foo"}); var promise = this.mopidy._send({method: "foo"});
refute.called(this.mopidy._webSocket.send); refute.called(this.mopidy._webSocket.send);
promise.then(done(function () { promise.then(done(function () {
assert(false); assert(false);
}), done(function (error) { }), done(function (error) {
assert.equals( assert.equals(
error.message, "WebSocket is closing"); error.message, "WebSocket is closing");
})); }));
}, },
@ -362,13 +362,13 @@ buster.testCase("Mopidy", {
this.mopidy._webSocket.readyState = WebSocket.CLOSED; this.mopidy._webSocket.readyState = WebSocket.CLOSED;
var promise = this.mopidy._send({method: "foo"}); var promise = this.mopidy._send({method: "foo"});
refute.called(this.mopidy._webSocket.send); refute.called(this.mopidy._webSocket.send);
promise.then(done(function () { promise.then(done(function () {
assert(false); assert(false);
}), done(function (error) { }), done(function (error) {
assert.equals( assert.equals(
error.message, "WebSocket is closed"); error.message, "WebSocket is closed");
})); }));
} }
}, },
@ -401,7 +401,7 @@ buster.testCase("Mopidy", {
result: null result: null
}; };
var messageEvent = {data: JSON.stringify(message)}; var messageEvent = {data: JSON.stringify(message)};
this.mopidy._handleMessage(messageEvent); this.mopidy._handleMessage(messageEvent);
assert.calledOnceWith(stub, message); assert.calledOnceWith(stub, message);
@ -414,7 +414,7 @@ buster.testCase("Mopidy", {
track: {} track: {}
}; };
var messageEvent = {data: JSON.stringify(message)}; var messageEvent = {data: JSON.stringify(message)};
this.mopidy._handleMessage(messageEvent); this.mopidy._handleMessage(messageEvent);
assert.calledOnceWith(stub, message); assert.calledOnceWith(stub, message);