test/user: don't attach User model twice

This commit is contained in:
Miroslav Bajtoš 2016-08-31 15:23:48 +02:00
parent 32bdeccebf
commit 92a5a08671
1 changed files with 0 additions and 1 deletions

View File

@ -70,7 +70,6 @@ describe('User', function() {
app.enableAuth({ dataSource: 'db' });
app.use(loopback.token({ model: AccessToken }));
app.use(loopback.rest());
app.model(User);
User.create(validCredentials, function(err, user) {
if (err) return done(err);