test/user: don't attach User model twice

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

View File

@ -66,7 +66,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);