Skip to content

Commit 8b43f0a

Browse files
committed
Fix indentation
1 parent 92ec62a commit 8b43f0a

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

  • packages/error-reporting/test/unit/interfaces

packages/error-reporting/test/unit/interfaces/hapi.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -114,31 +114,31 @@ describe('Hapi interface', function() {
114114
fakeServer.removeAllListeners();
115115
});
116116
it('Should call continue when a boom is emitted if reply is an object',
117-
function(done) {
118-
plugin.register(fakeServer, null, function() {});
119-
fakeServer.emit(EVENT, {response: {isBoom: true}},
120-
{
121-
continue: function() {
122-
// The continue function should be called
123-
done();
117+
function(done) {
118+
plugin.register(fakeServer, null, function() {});
119+
fakeServer.emit(EVENT, {response: {isBoom: true}},
120+
{
121+
continue: function() {
122+
// The continue function should be called
123+
done();
124+
}
124125
}
125-
}
126-
);
126+
);
127127
});
128128
it('Should call continue when a boom is emitted if reply is a function',
129-
function(done) {
130-
// Manually testing has shown that in actual usage the `reply` object
131-
// provided to listeners of the `onPreResponse` event can be a function
132-
// that has a `continue` property that is a function.
133-
// If `reply.continue()` is not invoked in this situation, the Hapi
134-
// app will become unresponsive.
135-
plugin.register(fakeServer, null, function() {});
136-
var reply = function() {};
137-
reply.continue = function() {
138-
// The continue function should be called
139-
done();
140-
};
141-
fakeServer.emit(EVENT, {response: {isBoom: true}}, reply);
129+
function(done) {
130+
// Manually testing has shown that in actual usage the `reply` object
131+
// provided to listeners of the `onPreResponse` event can be a function
132+
// that has a `continue` property that is a function.
133+
// If `reply.continue()` is not invoked in this situation, the Hapi
134+
// app will become unresponsive.
135+
plugin.register(fakeServer, null, function() {});
136+
var reply = function() {};
137+
reply.continue = function() {
138+
// The continue function should be called
139+
done();
140+
};
141+
fakeServer.emit(EVENT, {response: {isBoom: true}}, reply);
142142
});
143143
it('Should call sendError when a boom is received', function(done) {
144144
var fakeClient = {

0 commit comments

Comments
 (0)