Skip to content

Commit

Permalink
Merged in task/test-fix (pull request #2)
Browse files Browse the repository at this point in the history
Fixed tests from missing dependencies
  • Loading branch information
rmathis committed Mar 6, 2018
1 parent 9d8d3b8 commit c714bf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function (config) {
fixWebpackSourcePaths: true,
skipFilesWithNoCoverage: false,
thresholds: {
emitWarning: false,
emitWarning: true,
global: {
statements: 80,
branches: 80,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { KeyInfoFormComponent } from './key-info-form.component';
import { InputDefaultsDirective } from '../../directive/input-defaults.directive';

import * as stubs from '../../../../testing/provider.stub';
import { I18nTextComponent } from '../i18n-text.component';

@Component({
template: `<key-info-form [provider]="provider"></key-info-form>`
Expand Down Expand Up @@ -58,7 +59,8 @@ describe('Security (Key) Info Form Component', () => {
declarations: [
KeyInfoFormComponent,
TestHostComponent,
InputDefaultsDirective
InputDefaultsDirective,
I18nTextComponent
],
}).compileComponents();
store = TestBed.get(Store);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe(`EntityDescriptorService`, () => {
expect(next).toBeTruthy();
});

backend.expectOne('/api/EntityDescriptors').flush(null, { status: 200, statusText: 'Ok' });
backend.expectOne('/api/EntityDescriptors').flush([], { status: 200, statusText: 'Ok' });
}
)));
});
Expand Down

0 comments on commit c714bf7

Please sign in to comment.