Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(module:testing): add @delon/testing lib #329

Merged
merged 1 commit into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/abc/avatar-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "avatarList",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd"
"ng-zorro-antd": "ng-zorro-antd"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "datePicker",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/util": "delon.util"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/down-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"entryFile": "public_api.ts",
"umdModuleIds": {
"file-saver": "saveAs",
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/edit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "edit",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/ellipsis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "ellipsis",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/util": "delon.util"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/error-collect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "errorCollect",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/util": "delon.util"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/exception/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "exception",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"flatModuleFile": "abc",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"date-fns": "DateFns",
"qrious": "Qrious",
"file-saver": "saveAs",
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/notice-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "noticeIcon",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/page-header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "pageHeader",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/abc/reuse-tab": "delon.abc.reuseTab",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/reuse-tab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"umdModuleIds": {
"@angular/cdk/overlay": "ng.cdk.overlay",
"@angular/cdk/portal": "ng.cdk.portal",
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/sidebar-nav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "sidebarNav",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "table",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/abc/xlsx": "delon.abc.xlsx",
"@delon/theme": "delon.theme",
"@delon/acl": "delon.acl",
Expand Down
2 changes: 1 addition & 1 deletion packages/chart/bar/bar.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2BarComponent } from './bar.component';
import { G2BarModule } from './bar.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "card",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/util": "delon.util"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/chart/gauge/gauge.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2GaugeComponent } from './gauge.component';
import { G2GaugeModule } from './gauge.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/mini-area/mini-area.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2MiniAreaComponent } from './mini-area.component';
import { G2MiniAreaModule } from './mini-area.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/mini-bar/mini-bar.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2MiniBarComponent } from './mini-bar.component';
import { G2MiniBarModule } from './mini-bar.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/mini-progress/mini-progress.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, DebugElement, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2MiniProgressComponent } from './mini-progress.component';
import { G2MiniProgressModule } from './mini-progress.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/mini-progress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "mini-progress",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/chart/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"flatModuleFile": "chart",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/chart/pie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "pie",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/util": "delon.util"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/chart/pie/pie.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync, tick } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2PieComponent } from './pie.component';
import { G2PieModule } from './pie.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/radar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"flatModuleFile": "radar",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/util": "delon.util"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/chart/radar/radar.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2RadarComponent, G2RadarData } from './radar.component';
import { G2RadarModule } from './radar.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/single-bar/single-bar.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2SingleBarComponent } from './single-bar.component';
import { G2SingleBarModule } from './single-bar.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/tag-cloud/tag-cloud.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2TagCloudComponent, G2TagCloudData } from './tag-cloud.component';
import { G2TagCloudModule } from './tag-cloud.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/timeline/timeline.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2TimelineComponent, G2TimelineData } from './timeline.component';
import { G2TimelineModule } from './timeline.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/chart/water-wave/water-wave.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, ViewChild } from '@angular/core';
import { fakeAsync } from '@angular/core/testing';
import { PageG2 } from '../../testing/g2';
import { PageG2 } from '@delon/testing';
import { G2WaterWaveComponent } from './water-wave.component';
import { G2WaterWaveModule } from './water-wave.module';

Expand Down
2 changes: 1 addition & 1 deletion packages/form/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"flatModuleFile": "form",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ngZorro.antd",
"ng-zorro-antd": "ng-zorro-antd",
"@delon/theme": "delon.theme",
"@delon/util": "delon.util"
}
Expand Down
20 changes: 20 additions & 0 deletions packages/testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# @delon/testing module [![Build Status](https://travis-ci.org/ng-alain/delon.svg?branch=master)](https://travis-ci.org/ng-alain/delon) [![NPM version](https://img.shields.io/npm/v/@delon/testing.svg)](https://www.npmjs.com/package/@delon/testing) [![NPM version](https://img.shields.io/npm/v/@delon/testing/next.svg)](https://www.npmjs.com/package/@delon/testing) [![Taobao version](https://npm.taobao.org/badge/v/@delon/testing.svg?style=flat-square)](https://npm.taobao.org/package/@delon/testing)

Test suite for ng-alain.

## Architecture

![Architecture](https://raw.githubusercontent.com/ng-alain/delon/master/_screenshot/architecture.png)

## Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

1. Use [GitHub Issues](https://github.com/ng-alain/delon/issues) board to report bugs and feature requests (not our email address)
2. Please **always** write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

### License

The MIT License (see the [LICENSE](https://github.com/ng-alain/delon/blob/master/LICENSE) file for the full text)
8 changes: 0 additions & 8 deletions packages/testing/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

export * from './public_api';
12 changes: 12 additions & 0 deletions packages/testing/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/@delon/testing",
"deleteDestPath": true,
"lib": {
"flatModuleFile": "testing",
"entryFile": "public_api.ts",
"umdModuleIds": {
"ng-zorro-antd": "ng-zorro-antd"
}
}
}
21 changes: 21 additions & 0 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@delon/testing",
"version": "0.0.0-PLACEHOLDER",
"author": "cipchk<cipchk@qq.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ng-alain/delon.git"
},
"bugs": {
"url": "https://github.com/ng-alain/ng-alain/issues"
},
"homepage": "https://ng-alain.com",
"keywords": [
"delon",
"ng-alain",
"angular",
"testing"
],
"sideEffects": false
}
19 changes: 7 additions & 12 deletions packages/testing/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// from angular
export * from './src/dispatch-events';
export * from './src/event-objects';
export * from './src/type-in-element';

export * from './dispatch-events';
export * from './event-objects';
export * from './type-in-element';
export * from './zorro';
export * from './suite';
export * from './src/zorro';
export * from './src/g2';
export * from './src/suite';
File renamed without changes.
Loading