Skip to content

Commit 2998233

Browse files
chore: remove more test noise
- are the line-endings different on this file? :(
1 parent 488677c commit 2998233

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

Diff for: tests/app/tests/platform-filter-components.ts

+21-25
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,45 @@
11
// make sure you import mocha-config before @angular/core
2-
import {assert} from './test-config';
3-
import {Component, ElementRef} from '@angular/core';
4-
import {createDevice, dumpView} from './test-utils';
5-
import {DEVICE} from 'nativescript-angular/platform-providers';
6-
import {platformNames} from 'platform';
7-
import {nTestBedAfterEach, nTestBedBeforeEach, nTestBedRender} from 'nativescript-angular/testing';
2+
import { assert } from "./test-config";
3+
import { Component, ElementRef } from "@angular/core";
4+
import { dumpView, createDevice } from "./test-utils";
5+
import { DEVICE } from "nativescript-angular/platform-providers";
6+
import { platformNames } from "platform";
7+
import { nTestBedAfterEach, nTestBedBeforeEach, nTestBedRender } from "nativescript-angular/testing";
88

99
@Component({
1010
template: `
11-
<StackLayout>
12-
<ios><Label text="IOS"></Label></ios>
13-
</StackLayout>`
11+
<StackLayout>
12+
<ios><Label text="IOS"></Label></ios>
13+
</StackLayout>`
1414
})
1515
export class IosSpecificComponent {
16-
constructor(public elementRef: ElementRef) {
17-
}
16+
constructor(public elementRef: ElementRef) { }
1817
}
1918

2019
@Component({
2120
template: `
22-
<StackLayout>
23-
<android><Label text="ANDROID"></Label></android>
24-
</StackLayout>`
21+
<StackLayout>
22+
<android><Label text="ANDROID"></Label></android>
23+
</StackLayout>`
2524
})
2625
export class AndroidSpecificComponent {
27-
constructor(public elementRef: ElementRef) {
28-
}
26+
constructor(public elementRef: ElementRef) { }
2927
}
3028

3129
@Component({
3230
template: `
33-
<StackLayout>
34-
<Label android:text="ANDROID" ios:text="IOS"></Label>
35-
</StackLayout>`
31+
<StackLayout>
32+
<Label android:text="ANDROID" ios:text="IOS"></Label>
33+
</StackLayout>`
3634
})
3735
export class PlatformSpecificAttributeComponent {
38-
constructor(public elementRef: ElementRef) {
39-
}
36+
constructor(public elementRef: ElementRef) { }
4037
}
4138

42-
// TODO: Something is different in dumpView. I suspect it has to do with the fact that the old
43-
// test app class rendered directly into a view container and returned the exact component, whereas
44-
// testbed appears to return a reference to the root component? Needs investigation.
4539
xdescribe("Platform filter directives", () => {
46-
40+
// TODO: Something is different in dumpView. I suspect it has to do with the fact that the old
41+
// test app class rendered directly into a view container and returned the exact component, whereas
42+
// testbed appears to return a reference to the root component? Needs investigation.
4743
describe("on IOS device", () => {
4844
beforeEach(nTestBedBeforeEach(
4945
[PlatformSpecificAttributeComponent, AndroidSpecificComponent, IosSpecificComponent],

0 commit comments

Comments
 (0)