Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dde24c1

Browse files
committedNov 2, 2017
chore: cleanup lint
1 parent 1124fe0 commit dde24c1

File tree

6 files changed

+28
-29
lines changed

6 files changed

+28
-29
lines changed
 

‎nativescript-angular/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class NativeScriptRenderer extends Renderer2 {
110110
@profile
111111
selectRootElement(selector: string): NgView {
112112
traceLog("NativeScriptRenderer.selectRootElement: " + selector);
113-
if (selector && selector[0] === '#') {
113+
if (selector && selector[0] === "#") {
114114
const result = getViewById(this.rootView, selector.slice(1));
115115
return (result || this.rootView) as NgView;
116116
}

‎nativescript-angular/testing/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import {NgModule} from '@angular/core';
2-
import {TestComponentRenderer} from '@angular/core/testing';
3-
import {NativeScriptTestComponentRenderer} from './src/nativescript_test_component_renderer';
4-
import {COMMON_PROVIDERS} from '../platform-common';
5-
import {APP_ROOT_VIEW} from '../platform-providers';
6-
import {View} from 'tns-core-modules/ui/core/view';
7-
import {topmost} from 'tns-core-modules/ui/frame';
8-
export * from './src/util';
1+
import { NgModule } from "@angular/core";
2+
import { TestComponentRenderer } from "@angular/core/testing";
3+
import { NativeScriptTestComponentRenderer } from "./src/nativescript_test_component_renderer";
4+
import { COMMON_PROVIDERS } from "../platform-common";
5+
import { APP_ROOT_VIEW } from "../platform-providers";
6+
import { View } from "tns-core-modules/ui/core/view";
7+
import { topmost } from "tns-core-modules/ui/frame";
8+
export * from "./src/util";
99

1010
/**
1111
* Get a reference to the root application view.

‎nativescript-angular/testing/src/nativescript_test_component_renderer.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {Injectable} from '@angular/core';
2-
import {TestComponentRenderer} from '@angular/core/testing';
3-
import {topmost} from 'tns-core-modules/ui/frame';
4-
import {LayoutBase} from 'tns-core-modules/ui/layouts/layout-base';
5-
import {ProxyViewContainer} from 'tns-core-modules/ui/proxy-view-container';
1+
import { Injectable } from "@angular/core";
2+
import { TestComponentRenderer } from "@angular/core/testing";
3+
import { topmost } from "tns-core-modules/ui/frame";
4+
import { LayoutBase } from "tns-core-modules/ui/layouts/layout-base";
5+
import { ProxyViewContainer } from "tns-core-modules/ui/proxy-view-container";
66

77
/**
88
* A NativeScript based implementation of the TestComponentRenderer.

‎nativescript-angular/testing/src/util.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import {ComponentFixture, TestBed} from '@angular/core/testing';
2-
import {NgModule, Type} from '@angular/core';
3-
import {NativeScriptModule} from '../../nativescript.module';
4-
import {platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
5-
import {NS_COMPILER_PROVIDERS} from '../../platform';
6-
import {NATIVESCRIPT_TESTING_PROVIDERS, NativeScriptTestingModule} from '../index';
7-
import {CommonModule} from '@angular/common';
1+
import { ComponentFixture, TestBed } from "@angular/core/testing";
2+
import { NgModule, Type } from "@angular/core";
3+
import { NativeScriptModule } from "../../nativescript.module";
4+
import { platformBrowserDynamicTesting } from "@angular/platform-browser-dynamic/testing";
5+
import { NS_COMPILER_PROVIDERS } from "../../platform";
6+
import { NATIVESCRIPT_TESTING_PROVIDERS, NativeScriptTestingModule } from "../index";
7+
import { CommonModule } from "@angular/common";
88

99
/**
1010
* Return a promise that resolves after (durationMs) milliseconds
@@ -62,8 +62,7 @@ export function nTestBedBeforeEach(
6262
providers: [...providers],
6363
imports: [NativeScriptModule, ...imports]
6464
});
65-
}
66-
else {
65+
} else {
6766
// If there are entry components, we have to reset the testing platform.
6867
//
6968
// There's got to be a better way... (o_O)
@@ -96,7 +95,7 @@ export function nTestBedBeforeEach(
9695
console.log(e.stack);
9796
done();
9897
});
99-
}
98+
};
10099

101100
}
102101

@@ -123,4 +122,4 @@ export function nTestBedAfterEach(resetEnv = true, resetFn = nBasicTestBedInit)
123122
resetFn();
124123
}
125124
};
126-
}
125+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Bootstrap helper module for jasmine spec tests
2-
import '../platform';
3-
import './dist/zone-nativescript.jasmine.js';
2+
import "../platform";
3+
import "./dist/zone-nativescript.jasmine.js";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import '../platform';
2-
import './dist/zone-nativescript.mocha.js';
1+
import "../platform";
2+
import "./dist/zone-nativescript.mocha.js";

0 commit comments

Comments
 (0)
Please sign in to comment.