test/user: don't attach User model twice
This commit is contained in:
parent
32bdeccebf
commit
92a5a08671
|
@ -70,7 +70,6 @@ describe('User', function() {
|
||||||
app.enableAuth({ dataSource: 'db' });
|
app.enableAuth({ dataSource: 'db' });
|
||||||
app.use(loopback.token({ model: AccessToken }));
|
app.use(loopback.token({ model: AccessToken }));
|
||||||
app.use(loopback.rest());
|
app.use(loopback.rest());
|
||||||
app.model(User);
|
|
||||||
|
|
||||||
User.create(validCredentials, function(err, user) {
|
User.create(validCredentials, function(err, user) {
|
||||||
if (err) return done(err);
|
if (err) return done(err);
|
||||||
|
|
Loading…
Reference in New Issue