Skip to content

Commit b2b9ce2

Browse files
christopherthielenmergify[bot]
authored andcommitted
chore(ng13): remove unused getter in test
1 parent eec7bcb commit b2b9ce2

File tree

6 files changed

+4
-12
lines changed

6 files changed

+4
-12
lines changed

test/ngModule/deferInitialRender.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { resolve } from '@angular/compiler-cli/src/ngtsc/file_system';
21
import { inject, TestBed } from '@angular/core/testing';
32
import { UIRouterModule } from '../../src/uiRouterNgModule';
43
import { memoryLocationPlugin, UIRouter } from '@uirouter/core';

test/ngModule/lazyModule.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { UIRouterModule } from '../../src/uiRouterNgModule';
33
import { UIView } from '../../src/directives/uiView';
44
import { memoryLocationPlugin, UIRouter } from '@uirouter/core';
55

6-
declare let System;
7-
86
const futureFoo = {
97
name: 'foo.**',
108
url: '/foo',
@@ -111,7 +109,6 @@ describe('lazy loading', () => {
111109
.sort();
112110
expect(names).toEqual(['', 'augment1', 'augment1.augment2']);
113111

114-
const wait = delay => new Promise(resolve => setTimeout(resolve, delay));
115112
stateService.go('augment1.augment2').then(() => {
116113
fixture.detectChanges();
117114
expect(stateService.current.name).toBe('augment1.augment2');

test/uiSref/uiSref.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ describe('uiSref', () => {
2929
return this.srefs.first;
3030
}
3131

32-
get linkBSref() {
33-
return this.srefs.toArray()[1];
34-
}
35-
3632
constructor() {
3733
this.linkA = null;
3834
this.linkAParams = null;

test/uiSrefStatus/uiSrefStatus.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
33
import { By } from '@angular/platform-browser';
44
import { UISref } from '../../src';
55

6-
import { SrefStatus, UISrefStatus } from '../../src/directives/uiSrefStatus';
6+
import { SrefStatus} from '../../src/directives/uiSrefStatus';
77
import { UIRouterModule } from '../../src/uiRouterNgModule';
88
import { clickOnElement, tick } from '../testUtils';
99

test/uiView/uiOnParamsChanged.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from '@angular/core';
1+
import { Component, OnInit } from '@angular/core';
22
import { ComponentFixture, TestBed } from '@angular/core/testing';
33
import { Ng2StateDeclaration, UIRouterModule, UIView } from '../../src';
44
import { memoryLocationPlugin, Transition, UIRouter } from '@uirouter/core';
@@ -17,7 +17,7 @@ describe('uiView', () => {
1717
let id = 0;
1818

1919
@Component({ template: `<h3>hey</h3> ` })
20-
class ParamWatcherComponent {
20+
class ParamWatcherComponent implements OnInit {
2121
$id = id++;
2222

2323
public uiOnParamsChanged(newParams: { [paramName: string]: any }, trans: Transition) {

test/viewsBuilder/viewsBuilder.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from '@angular/core';
22
import { ng2ViewsBuilder } from '../../src/statebuilders/views';
3-
import { StateObject, StateRegistry, UIRouter } from '@uirouter/core';
3+
import { StateObject, UIRouter } from '@uirouter/core';
44

55
describe('views statebuilder', () => {
66
let router: UIRouter;

0 commit comments

Comments
 (0)