Skip to content

Commit

Permalink
fixup! minor fixes in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos committed Nov 22, 2018
1 parent 2cabdce commit d12b495
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions packages/repository/test/unit/mixins/repository.mixin.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

import {Application, Component, BindingScope} from '@loopback/core';
import {Application, BindingScope, Component} from '@loopback/core';
import {expect, sinon} from '@loopback/testlab';
import {DefaultCrudRepository, ModelDefinition} from '../../..';
import {
Class,
DataSource,
Entity,
juggler,
Repository,
RepositoryMixin,
DataSource,
Entity,
} from '../../../';
import {DefaultCrudRepository, ModelDefinition} from '../../../src';

// tslint:disable:no-any

Expand Down Expand Up @@ -115,9 +115,10 @@ describe('RepositoryMixin', () => {
.inScope(BindingScope.SINGLETON);

await app.migrateSchema({dropExistingSchema: true});
// the test passes when migrateSchema() does not throw any error
});

it('ensures models are attached to datasources', async () => {
it('attaches all models to datasources', async () => {
let modelsMigrated = ['no models were migrated'];

const ds = new juggler.DataSource({name: 'db', connector: 'memory'});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

import {expect, sinon} from '@loopback/testlab';
import {expect} from '@loopback/testlab';
import {
bindModel,
DefaultCrudRepository,
Expand Down

0 comments on commit d12b495

Please sign in to comment.