- updates tests - heavy prose revisions - uses HttpClient (with angular-in-memory-web-api) - test HeroService using `HttpClientTestingModule` - scrub away most By.CSS - fake async observable with `asyncData()` - extensive Twain work - different take on retryWhen - remove app barrels (& systemjs.extras) which troubled plunker/systemjs - add dummy export const to hero.ts (plunkr/systemjs fails w/o it) - shrink and re-organize TOC - add marble testing package and tests - demonstrate the "no beforeEach()" test coding style - add section on Http service testing - prepare for stackblitz - confirm works in plunker except excluded marble test - add tests for avoidFile class feature of CodeExampleComponent PR Close #20697
16 lines
974 B
TypeScript
16 lines
974 B
TypeScript
import { Quote } from './quote';
|
|
|
|
export const QUOTES: Quote[] = [
|
|
'Always do right. This will gratify some people and astonish the rest.',
|
|
'I have never let my schooling interfere with my education.',
|
|
'Don\'t go around saying the world owes you a living. The world owes you nothing. It was here first.',
|
|
'Whenever you find yourself on the side of the majority, it is time to pause and reflect.',
|
|
'If you tell the truth, you don\'t have to remember anything.',
|
|
'Clothes make the man. Naked people have little or no influence on society.',
|
|
'It\'s not the size of the dog in the fight, it\'s the size of the fight in the dog.',
|
|
'Truth is stranger than fiction, but it is because Fiction is obliged to stick to possibilities; Truth isn\'t.',
|
|
'The man who does not read good books has no advantage over the man who cannot read them.',
|
|
'Get your facts first, and then you can distort them as much as you please.',
|
|
]
|
|
.map((q, i) => ({ id: i + 1, quote: q }));
|