Permalink
Browse files

build(npm): add precommit hooks (#595)

  • Loading branch information...
Burak Tasci
Burak Tasci committed Dec 20, 2018
1 parent 921a0d2 commit ad6c6bbd68fd53c94d9ed202c4da92754507fb32
Showing with 4,038 additions and 5,047 deletions.
  1. +18 −0 .editorconfig
  2. +4 −0 .lintstagedrc
  3. +51 −0 .prettierignore
  4. +5 −0 .prettierrc
  5. +1 −2 angular.json
  6. +1 −0 commitlint.config.js
  7. +72 −62 package.json
  8. +5 −9 server.ts
  9. +2 −6 src/app/+about/about-apple-pear.component.e2e-spec.ts
  10. +4 −19 src/app/+about/about-apple-pear.component.spec.ts
  11. +1 −5 src/app/+about/about-apple-pear.component.ts
  12. +2 −6 src/app/+about/about-banana.component.e2e-spec.ts
  13. +4 −19 src/app/+about/about-banana.component.spec.ts
  14. +1 −5 src/app/+about/about-banana.component.ts
  15. +2 −6 src/app/+about/about-us.component.e2e-spec.ts
  16. +4 −19 src/app/+about/about-us.component.spec.ts
  17. +1 −5 src/app/+about/about-us.component.ts
  18. +2 −6 src/app/+about/about.component.e2e-spec.ts
  19. +4 −19 src/app/+about/about.component.spec.ts
  20. +1 −5 src/app/+about/about.component.ts
  21. +7 −28 src/app/+about/about.module.ts
  22. +3 −4 src/app/+about/about.routes.ts
  23. +6 −23 src/app/+air-universal/air-universal.module.ts
  24. +0 −2 src/app/+air-universal/air-universal.routes.ts
  25. +28 −49 src/app/+air-universal/airline/airline-detail/airline-detail-container.component.spec.ts
  26. +39 −41 src/app/+air-universal/airline/airline-detail/airline-detail-container.component.ts
  27. +16 −33 src/app/+air-universal/airline/airline-detail/airline-detail.component.spec.ts
  28. +19 −14 src/app/+air-universal/airline/airline-detail/airline-detail.component.ts
  29. +18 −32 src/app/+air-universal/airline/airline.component.spec.ts
  30. +12 −16 src/app/+air-universal/airline/airline.component.ts
  31. +2 −6 src/app/+home/home.component.e2e-spec.ts
  32. +4 −19 src/app/+home/home.component.spec.ts
  33. +1 −5 src/app/+home/home.component.ts
  34. +3 −19 src/app/+home/home.module.ts
  35. +0 −1 src/app/+home/home.routes.ts
  36. +2 −6 src/app/+secure/secure.component.e2e-spec.ts
  37. +4 −19 src/app/+secure/secure.component.spec.ts
  38. +1 −5 src/app/+secure/secure.component.ts
  39. +3 −19 src/app/+secure/secure.module.ts
  40. +0 −2 src/app/+secure/secure.routes.ts
  41. +2 −9 src/app/app.browser.module.ts
  42. +8 −21 src/app/app.component.spec.ts
  43. +1 −12 src/app/app.component.ts
  44. +8 −36 src/app/app.module.ts
  45. +1 −5 src/app/app.routes.ts
  46. +21 −33 src/app/app.server.module.ts
  47. +7 −20 src/app/framework/analytics/analytics.module.ts
  48. +49 −54 src/app/framework/analytics/analytics.service.spec.ts
  49. +14 −18 src/app/framework/analytics/analytics.service.ts
  50. +8 −10 src/app/framework/auth/testing/auth-testing.module.ts
  51. +13 −16 src/app/framework/auth/testing/mocks/backend-interceptor.mock.ts
  52. +20 −17 src/app/framework/auth/testing/mocks/jwt-interceptor.mock.ts
  53. +0 −1 src/app/framework/auth/testing/tokens.ts
  54. +1 −8 src/app/framework/core/base-container.component.spec.ts
  55. +1 −7 src/app/framework/core/base-container.component.ts
  56. +1 −8 src/app/framework/core/base.component.spec.ts
  57. +3 −8 src/app/framework/core/base.component.ts
  58. +0 −2 src/app/framework/core/console.service.ts
  59. +30 −50 src/app/framework/core/core.module.ts
  60. +88 −134 src/app/framework/core/log.service.spec.ts
  61. +11 −13 src/app/framework/core/log.service.ts
  62. +4 −13 src/app/framework/core/shared.module.ts
  63. +15 −18 src/app/framework/core/testing/core-testing.module.ts
  64. +0 −1 src/app/framework/core/testing/mocks/config-service.mock.ts
  65. +0 −1 src/app/framework/core/window.service.ts
  66. +61 −73 src/app/framework/http/base-url.interceptor.spec.ts
  67. +21 −26 src/app/framework/http/base-url.interceptor.ts
  68. +4 −13 src/app/framework/http/http-interceptor.module.ts
  69. +6 −8 src/app/framework/http/testing/mocks/service.mock.ts
  70. +80 −77 src/app/framework/http/universal.interceptor.spec.ts
  71. +24 −19 src/app/framework/http/universal.interceptor.ts
  72. +12 −28 src/app/framework/i18n/change-language.component.spec.ts
  73. +13 −16 src/app/framework/i18n/change-language.component.ts
  74. +4 −7 src/app/framework/i18n/i18n.module.ts
  75. +70 −69 src/app/framework/i18n/i18n.service.spec.ts
  76. +13 −36 src/app/framework/i18n/i18n.service.ts
  77. +3 −7 src/app/framework/i18n/testing/i18n-testing.module.ts
  78. +0 −3 src/app/framework/i18n/testing/mocks/translate-service.mock.ts
  79. +1 −3 src/app/framework/material/material.module.ts
  80. +127 −117 src/app/framework/ngrx/base-entity.service.spec.ts
  81. +17 −38 src/app/framework/ngrx/base-entity.service.ts
  82. +25 −39 src/app/framework/ngrx/entity-reducer.util.spec.ts
  83. +6 −8 src/app/framework/ngrx/entity-reducer.util.ts
  84. +15 −26 src/app/framework/ngrx/reducer.util.spec.ts
  85. +3 −3 src/app/framework/ngrx/reducer.util.ts
  86. +1 −4 src/app/framework/ngrx/testing/mocks/actions.mock.ts
  87. +6 −8 src/app/framework/ngrx/testing/mocks/entity-service.mock.ts
  88. +6 −12 src/app/framework/ngrx/testing/mocks/store.mock.ts
  89. +3 −10 src/app/framework/ngrx/testing/ngrx-testing.module.ts
  90. +10 −11 src/app/framework/ngrx/testing/state.util.ts
  91. +1 −4 src/app/framework/router/testing/mocks/activated-route.mock.ts
  92. +1 −2 src/app/framework/router/testing/mocks/router.mock.ts
  93. +1 −4 src/app/framework/router/testing/router-testing.module.ts
  94. +4 −13 src/app/framework/store/i18n/i18n.module.ts
  95. +0 −1 src/app/framework/store/i18n/i18n.state.ts
  96. +0 −1 src/app/framework/store/i18n/index.ts
  97. +12 −11 src/app/framework/store/i18n/language/language.actions.ts
  98. +66 −74 src/app/framework/store/i18n/language/language.effects.spec.ts
  99. +52 −63 src/app/framework/store/i18n/language/language.effects.ts
  100. +14 −17 src/app/framework/store/i18n/language/language.reducer.spec.ts
  101. +13 −11 src/app/framework/store/i18n/language/language.reducer.ts
  102. +5 −12 src/app/framework/store/i18n/language/language.selectors.spec.ts
  103. +13 −6 src/app/framework/store/i18n/language/language.selectors.ts
  104. +0 −1 src/app/framework/store/i18n/language/language.state.ts
  105. +0 −1 src/app/framework/store/i18n/language/testing/common.ts
  106. +0 −1 src/app/framework/store/state.ts
  107. +5 −9 src/app/framework/store/store.module.ts
  108. +0 −1 src/app/framework/testing/e2e.ts
  109. +0 −1 src/app/framework/testing/index.ts
  110. +1 −3 src/app/framework/testing/mocks/component.mock.ts
  111. +0 −1 src/app/framework/testing/shorthand/ng-e2e.ts
  112. +0 −2 src/app/framework/testing/shorthand/ng-jest.ts
  113. +1 −4 src/app/framework/testing/testing.module.ts
  114. +6 −19 src/app/layout/header.component.spec.ts
  115. +4 −16 src/app/layout/header.component.ts
  116. +13 −26 src/app/layout/main.component.spec.ts
  117. +0 −3 src/app/layout/main.component.ts
  118. +0 −1 src/app/library/flight/models/airline.ts
  119. +0 −1 src/app/library/flight/models/airport.ts
  120. +0 −2 src/app/library/flight/models/flight-segment.ts
  121. +0 −2 src/app/library/flight/models/flight.ts
  122. +2 −6 src/app/login/login.component.e2e-spec.ts
  123. +22 −35 src/app/login/login.component.spec.ts
  124. +14 −14 src/app/login/login.component.ts
  125. +1 −5 src/app/shared/animations.ts
  126. +2 −11 src/app/shared/card/card.component.ts
  127. +2 −14 src/app/shared/card/card.module.ts
  128. +6 −24 src/app/shared/common/common.module.ts
  129. +0 −3 src/app/shared/common/components/loading-overlay/loading-overlay.component.ts
  130. +0 −4 src/app/shared/common/components/menu/menu-group.component.ts
  131. +0 −3 src/app/shared/common/components/menu/menu-item.component.ts
  132. +7 −8 src/app/shared/common/util/func.util.ts
  133. +6 −8 src/app/shared/common/util/seo.util.ts
  134. +6 −16 src/app/shared/data-table/data-table-base.component.ts
  135. +31 −54 src/app/shared/data-table/data-table.component.ts
  136. +5 −22 src/app/shared/data-table/data-table.module.ts
  137. +3 −4 src/app/shared/data-table/models/data-table-column.ts
  138. +1 −3 src/app/shared/data-table/models/data-table.ts
  139. +1 −1 src/app/shared/index.ts
  140. +2 −13 src/app/shared/shared.module.ts
  141. +4 −13 src/app/store/air-universal/air-universal.module.ts
  142. +0 −1 src/app/store/air-universal/air-universal.state.ts
  143. +24 −27 src/app/store/air-universal/airline/airline.actions.ts
  144. +267 −277 src/app/store/air-universal/airline/airline.effects.spec.ts
  145. +93 −67 src/app/store/air-universal/airline/airline.effects.ts
  146. +0 −1 src/app/store/air-universal/airline/airline.model.ts
  147. +40 −77 src/app/store/air-universal/airline/airline.reducer.spec.ts
  148. +55 −42 src/app/store/air-universal/airline/airline.reducer.ts
  149. +6 −12 src/app/store/air-universal/airline/airline.selectors.spec.ts
  150. +19 −8 src/app/store/air-universal/airline/airline.selectors.ts
  151. +93 −89 src/app/store/air-universal/airline/airline.service.spec.ts
  152. +15 −30 src/app/store/air-universal/airline/airline.service.ts
  153. +0 −5 src/app/store/air-universal/airline/airline.state.ts
  154. +0 −3 src/app/store/air-universal/airline/testing/common.ts
  155. +7 −19 src/app/store/air-universal/airline/testing/mocks/airline-service.mock.ts
  156. +0 −1 src/app/store/air-universal/index.ts
  157. +0 −2 src/app/store/state.ts
  158. +7 −14 src/app/store/store.module.ts
  159. +1 −1 src/environments/environment.ts
  160. +10 −12 src/hmr.ts
  161. +10 −11 src/main-browser.ts
  162. +0 −1 src/main-server.ts
  163. +7 −7 src/polyfills.ts
  164. +5 −5 tools/test/jest.setup.ts
  165. +1 −2 tools/test/nightmare.config.ts
  166. +7 −0 tsconfig.lint.json
  167. +14 −0 tslint.immutable.json
  168. +19 −37 tslint.json
  169. +1,821 −2,010 yarn.lock
@@ -0,0 +1,18 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 140

[*.md]
trim_trailing_whitespace = false
max_line_length = off

[*.html]
indent_size = 4
@@ -0,0 +1,4 @@
{
"*.{json,css,scss,md,js}": ["prettier --write", "git add"],
"*.(ts)": ["prettier-tslint fix", "git add"]
}
@@ -0,0 +1,51 @@
# angular gitignore
# see https://github.com/prettier/prettier/issues/2294

## compiled output
/.awcache
/.cache
/dist
/docs
/tmp
/out-tsc

## dependencies
/bower_components
/node_modules

## IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
test-report.xml
/typings

# System Files
.DS_Store
Thumbs.db

# auto-generated files
/angular.json
/.angular-cli.json
/package-lock.json
/yarn.lock
@@ -0,0 +1,5 @@
{
"printWidth": 140,
"singleQuote": true,
"endOfLine": "crlf"
}
@@ -118,8 +118,7 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.json",
"tsconfig.spec.json"
"tsconfig.lint.json"
],
"exclude": [
"**/node_modules/**"
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
@@ -35,93 +35,108 @@
"e2e": "yarn build:ssr && concurrently -k --kill-others-on-fail -s first \"yarn serve:ssr\" \"jest -c ./tools/test/e2e-preset.json --runInBand --colors\"",
"e2e:ci": "concurrently -k --kill-others-on-fail -s first \"yarn serve:ssr\" \"jest --ci -c ./tools/test/e2e-preset.json --colors\"",
"lint": "ng lint",
"lint:check": "tslint-config-prettier-check ./tslint.json",
"lint:fix": "prettier-tslint fix src/**/*.ts",
"ci:before": "greenkeeper-lockfile-update",
"ci:after": "greenkeeper-lockfile-upload",
"docs": "node_modules/.bin/compodoc -p tsconfig.json -d docs -n \"ng-seed/universal\" -t --theme stripe",
"release": "standard-version && yarn docs"
},
"dependencies": {
"express": "~4.16.4",
"debug": "~4.1.0",
"compression": "~1.7.3",
"@angular/animations": "~7.1.1",
"@angular/common": "~7.1.1",
"@angular/core": "~7.1.1",
"@angular/forms": "~7.1.1",
"@angular/http": "~7.1.1",
"@angular/platform-browser": "~7.1.1",
"@angular/platform-browser-dynamic": "~7.1.1",
"@angular/platform-server": "~7.1.1",
"@angular/router": "~7.1.1",
"@angular/cdk": "~7.1.0",
"@angular/material": "~7.1.0",
"@angular/flex-layout": "7.0.0-beta.19",
"core-js": "~2.5.7",
"reflect-metadata": "~0.1.12",
"rxjs": "~6.3.3",
"zone.js": "~0.8.26",
"request": "~2.88.0",
"hammerjs": "~2.0.8",
"lodash": "~4.17.11",
"@angular/animations": "~7.2.0-rc.0",
"@angular/cdk": "~7.2.0",
"@angular/common": "~7.2.0-rc.0",
"@angular/core": "~7.2.0-rc.0",
"@angular/flex-layout": "7.0.0-beta.22",
"@angular/forms": "~7.2.0-rc.0",
"@angular/http": "~7.2.0-rc.0",
"@angular/material": "~7.2.0",
"@angular/platform-browser": "~7.2.0-rc.0",
"@angular/platform-browser-dynamic": "~7.2.0-rc.0",
"@angular/platform-server": "~7.2.0-rc.0",
"@angular/router": "~7.2.0-rc.0",
"@angularclass/bootloader": "~1.0.1",
"@ngrx/store": "~6.1.2",
"@ngrx/effects": "~6.1.2",
"@ngrx/entity": "~6.1.2",
"@ngrx/effects": "~7.0.0-beta.1",
"@ngrx/entity": "~7.0.0-beta.1",
"@ngrx/store": "~7.0.0-beta.1",
"@nguniversal/common": "~7.0.2",
"@nguniversal/express-engine": "~7.0.2",
"@nguniversal/module-map-ngfactory-loader": "~7.0.2",
"@ngx-config/core": "~6.0.0",
"@ngx-config/http-loader": "~6.0.0",
"@ngx-auth/core": "~6.0.0",
"@ngx-cache/core": "~6.0.0",
"@ngx-cache/fs-storage": "~6.0.0",
"@ngx-cache/platform-browser": "~6.0.0",
"@ngx-cache/platform-server": "~6.0.0",
"@ngx-cache/fs-storage": "~6.0.0",
"@ngx-auth/core": "~6.0.0",
"@ngx-config/core": "~6.0.0",
"@ngx-config/http-loader": "~6.0.0",
"@ngx-meta/core": "~6.0.0",
"@ngx-translate/core": "~11.0.1",
"@ngx-translate/http-loader": "~4.0.0",
"@ngx-meta/core": "~6.0.0",
"angulartics2": "~7.2.3",
"compression": "~1.7.3",
"core-js": "~2.6.1",
"debug": "~4.1.0",
"express": "~4.16.4",
"hammerjs": "~2.0.8",
"lodash": "~4.17.11",
"ngx-perfect-scrollbar": "~7.1.0",
"reflect-metadata": "~0.1.12",
"request": "~2.88.0",
"rxjs": "~6.3.3",
"unionize": "~2.1.2",
"angulartics2": "~7.2.1",
"ngx-perfect-scrollbar": "~7.1.0"
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular/cli": "~7.1.0",
"@angular/compiler": "~7.1.1",
"@angular/compiler-cli": "~7.1.1",
"@angular/language-service": "~7.1.1",
"@angular-devkit/build-angular": "~0.11.0",
"@angular-devkit/core": "~7.1.0",
"@angular-devkit/schematics": "~7.1.0",
"@angular-builders/custom-webpack": "~7.0.0",
"@angular-builders/dev-server": "~7.0.0",
"@angular-builders/custom-webpack": "~7.1.1",
"@angular-builders/dev-server": "~7.1.1",
"@angular-devkit/build-angular": "~0.12.0-rc.0",
"@angular-devkit/core": "~7.2.0-rc.0",
"@angular-devkit/schematics": "~7.2.0-rc.0",
"@angular/cli": "~7.2.0-rc.0",
"@angular/compiler": "~7.2.0-rc.0",
"@angular/compiler-cli": "~7.2.0-rc.0",
"@angular/language-service": "~7.2.0-rc.0",
"@angularclass/hmr": "~2.1.3",
"@ngrx/schematics": "~6.1.2",
"@ngrx/store-devtools": "~6.1.2",
"@commitlint/cli": "~7.2.1",
"@commitlint/config-conventional": "~7.1.2",
"@compodoc/compodoc": "~1.1.7",
"@ngrx/schematics": "~7.0.0-beta.1",
"@ngrx/store-devtools": "~7.0.0-beta.1",
"@types/compression": "~0.0.36",
"@types/express": "~4.16.0",
"@types/jest": "~23.3.10",
"@types/lodash": "~4.14.118",
"@types/lodash": "~4.14.119",
"@types/nightmare": "~2.10.4",
"@types/node": "~10.12.10",
"rimraf": "~2.6.2",
"@types/node": "~10.12.18",
"angular-tslint-rules": "~1.12.1",
"codelyzer": "~4.5.0",
"concurrently": "~4.1.0",
"tslint-loader": "~3.5.4",
"stylelint": "~9.9.0",
"stylelint-config-standard": "~18.2.0",
"husky": "~1.3.0",
"jasmine-marbles": "~0.4.1",
"jest": "~23.6.0",
"jest-preset-angular": "~6.0.1",
"jest-junit-reporter": "~1.1.0",
"jest-preset-angular": "~6.0.2",
"lint-staged": "~8.1.0",
"ng-bullet": "~1.0.3",
"jasmine-marbles": "0.3.1",
"nightmare": "~3.0.1",
"@compodoc/compodoc": "~1.1.7",
"prettier": "~1.15.3",
"prettier-tslint": "~0.4.1",
"rimraf": "~2.6.2",
"standard-version": "~4.4.0",
"codelyzer": "~4.5.0",
"tslint": "~5.11.0",
"angular-tslint-rules": "~1.5.0",
"rxjs-tslint": "~0.1.5",
"stylelint": "~9.9.0",
"stylelint-config-standard": "~18.2.0",
"tslib": "~1.9.3",
"typescript": "~3.1.6"
"tslint": "~5.12.0",
"tslint-config-prettier": "~1.17.0",
"tslint-immutable": "~5.0.1",
"tslint-loader": "~3.5.4",
"typescript": "~3.2.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"jest": {
"preset": "jest-preset-angular",
@@ -148,10 +163,5 @@
"!**/environments/*.ts",
"!src/*.ts"
]
},
"greenkeeper": {
"ignore": [
"jasmine-marbles"
]
}
}
@@ -1,20 +1,16 @@
// polyfills
import 'zone.js/dist/zone-node';
// tslint:disable
import 'reflect-metadata';
import 'zone.js/dist/zone-node';

// angular
import { enableProdMode } from '@angular/core';

// libs
import { join } from 'path';
import * as express from 'express';
import * as compression from 'compression';
import { ngExpressEngine } from '@nguniversal/express-engine';
import { provideModuleMap } from '@nguniversal/module-map-ngfactory-loader';
import * as compression from 'compression';
import * as express from 'express';
import { join } from 'path';

enableProdMode();

// tslint:disable-next-line
const { AppServerModuleNgFactory, LAZY_MODULE_MAP } = require('./server/main');

const server = express();
@@ -1,16 +1,12 @@
// testing
import { baseUrl, browser } from 'e2e-config';
import { e2e } from '~/app/framework/testing/e2e';

e2e.describe('AboutApplePearComponent', () => {
e2e.it('should have title', async () => {
const page = browser.goto(`${baseUrl}/about/apple/6/pear`);

const text = await page
.evaluate(() => document.title)
.end();
const text = await page.evaluate(() => document.title).end();

e2e.e(text)
.toContain('Apple or pear | ng-seed/universal');
e2e.e(text).toContain('Apple or pear | ng-seed/universal');
});
});
@@ -1,31 +1,17 @@
// angular
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';

// libs
import { configureTestSuite } from 'ng-bullet';

// testing
import { SharedModule } from '~/app/framework/core';
import { CoreTestingModule } from '~/app/framework/core/testing';
import { I18NTestingModule } from '~/app/framework/i18n/testing';
import { t } from '~/app/framework/testing';

// app
import { SharedModule } from '~/app/framework/core';
import { MaterialModule } from '~/app/framework/material';
import { t } from '~/app/framework/testing';

// module
import { AboutApplePearComponent } from './about-apple-pear.component';

configureTestSuite(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
CoreTestingModule,
I18NTestingModule,
SharedModule,
MaterialModule
],
imports: [RouterTestingModule, CoreTestingModule, I18NTestingModule, SharedModule, MaterialModule],
declarations: [AboutApplePearComponent]
});
});
@@ -36,7 +22,6 @@ t.describe('AboutApplePearComponent', () => {
const instance = fixture.componentInstance;
fixture.detectChanges();

t.e(instance)
.toBeTruthy();
t.e(instance).toBeTruthy();
});
});
@@ -1,7 +1,4 @@
// angular
import { ChangeDetectionStrategy, Component } from '@angular/core';

// app
import { BaseComponent } from '~/app/framework/core';
import { routeAnimation } from '~/app/shared';

@@ -11,5 +8,4 @@ import { routeAnimation } from '~/app/shared';
changeDetection: ChangeDetectionStrategy.OnPush,
animations: [routeAnimation]
})
export class AboutApplePearComponent extends BaseComponent {
}
export class AboutApplePearComponent extends BaseComponent {}
@@ -1,16 +1,12 @@
// testing
import { baseUrl, browser } from 'e2e-config';
import { e2e } from '~/app/framework/testing/e2e';

e2e.describe('AboutBananaComponent', () => {
e2e.it('should have title', async () => {
const page = browser.goto(`${baseUrl}/about/banana`);

const text = await page
.evaluate(() => document.title)
.end();
const text = await page.evaluate(() => document.title).end();

e2e.e(text)
.toContain('Banana republic | ng-seed/universal');
e2e.e(text).toContain('Banana republic | ng-seed/universal');
});
});
Oops, something went wrong.

0 comments on commit ad6c6bb

Please sign in to comment.