Skip to content

Commit b53e9c9

Browse files
committed
Cleaner test style
1 parent edbbcaf commit b53e9c9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/lockdown.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,11 @@ describe('Lockdown pattern', function() {
9696

9797
// mock express 3 app
9898
app = {
99-
routes: {
100-
get: [
101-
{ callbacks: [ privateAction ] }
102-
]
103-
}
99+
routes: { get: [] }
104100
};
105101

106102
app.oauth = oauth2server({ model: {} });
103+
app.routes.get.push({ callbacks: [ privateAction ] });
107104
app.routes.get.push({ callbacks: [ app.oauth.bypass, publicAction ] })
108105
app.oauth.lockdown(app);
109106
});

0 commit comments

Comments
 (0)