Skip to content

Commit 1384eb1

Browse files
IlyaSurmayvalorkin
authored andcommitted
fix(build): fix most of ts errors
1 parent da92081 commit 1384eb1

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

scripts/typings.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ declare const ENV:string;
88
// google code-prettify
99
declare const PR:any;
1010

11-
declare const global:any;
12-
1311
declare module jasmine {
1412
interface Matchers {
1513
toHaveCssClass(expected: any): boolean;

src/spec/ng-bootstrap/carousel.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,5 +418,5 @@ describe('ngb-carousel', () => {
418418
@Component({selector: 'test-cmp', template: ''})
419419
class TestComponent {
420420
public activeSlideIndex: number;
421-
// keyboard = true;
421+
keyboard:boolean;
422422
}

src/spec/ng-bootstrap/collapse.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { CollapseModule } from '../../collapse';
99
const createTestComponent = (html: string) =>
1010
createGenericTestComponent(html, TestComponent) as ComponentFixture<TestComponent>;
1111

12-
function getCollapsibleContent(element: HTMLElement): HTMLDivElement {
13-
return (element as HTMLDivElement).querySelector('.collapse');
12+
function getCollapsibleContent(element: HTMLElement): Element {
13+
return (element).querySelector('.collapse');
1414
}
1515

1616
describe('bs-collapse', () => {
@@ -90,5 +90,5 @@ describe('bs-collapse', () => {
9090

9191
@Component({selector: 'test-cmp', template: ''})
9292
class TestComponent {
93-
public collapsed:string = false;
93+
public collapsed:boolean = false;
9494
}

src/spec/typeahead-container.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('Component: TypeaheadContainer', () => {
7272
xit('should highlight query for match', () => {
7373
// expect(matches[1].children[0].innerHTML).toBe('<strong>fo</strong>od');
7474
const ms = fixture.debugElement.queryAll(By.css('.dropdown-menu li span'));
75-
expect(ms[1].innerHTML).toBe('<strong>fo</strong>od');
75+
expect(ms[1].nativeElement.innerHTML).toBe('<strong>fo</strong>od');
7676
});
7777

7878
it('should set the \"active\" class on the first match', () => {
@@ -139,7 +139,7 @@ describe('Component: TypeaheadContainer', () => {
139139

140140
xit('should highlight query for item match', () => {
141141
const im = fixture.debugElement.queryAll(By.css('.dropdown-menu li:not(.dropdown-header) span'));
142-
expect(im[1].innerHTML).toBe('<strong>a</strong>pple');
142+
expect(im[1].nativeElement.innerHTML).toBe('<strong>a</strong>pple');
143143
});
144144

145145
it('should set the \"active\" class on the first item match', () => {

src/spec/utils/linkedlist.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { LinkedList } from '../../utils/linked-list.class';
22

3-
let list: LinkedList;
3+
let list: LinkedList<any>;
44

55
describe('Linked List. Base functions.', () => {
66

src/tsconfig.spec.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020
},
2121
"types": [
2222
"jasmine",
23-
"node"
23+
"webpack"
2424
],
2525
"lib": [
2626
"es2016",
2727
"dom"
2828
]
2929
},
3030
"include": [
31+
"../scripts/typings.d.ts",
3132
"./spec/**/*.spec.ts",
3233
"**/*.d.ts"
3334
],

0 commit comments

Comments
 (0)