JonathanPrince / loopback-component-fixtures

handle fixtures for testing clients against
MIT License
12 stars 13 forks source link

Fix issue with fixtures model appearing twice on app.models #19

Closed beeman closed 7 years ago

beeman commented 7 years ago

The model that gets created got added twice to app.models:

Renaming this definition seems to fix the issue, without further impact.

The way I tested this was to do console.log(Object.keys(app.models)) after loading the app. The result was the following array:

[ 'User', 'AccessToken', 'ACL', 'RoleMapping', 'Role', 'fixtures', 'Fixtures' ].

After this patch it only appears once as Fixtures.

JonathanPrince commented 7 years ago

Hi @beeman, thank you for your contribution, sorry it took so long for me to merge.