docs: fix typo at console.log (#39252)

PR Close #39252
This commit is contained in:
Nicholas Papadopoulos 2020-10-13 23:17:36 +03:00 committed by Andrew Kushnir
parent 178a0437b7
commit 7669827436
2 changed files with 5 additions and 5 deletions

View File

@ -23,13 +23,13 @@ describe('retry-on-error', () => {
docRegionDefault(mockConsole, ajax); docRegionDefault(mockConsole, ajax);
expect(mockConsole.log.calls.allArgs()).toEqual([ expect(mockConsole.log.calls.allArgs()).toEqual([
['Subscribed to AJAX'], ['Subscribed to AJAX'],
['Error occured.'], ['Error occurred.'],
['Subscribed to AJAX'], ['Subscribed to AJAX'],
['Error occured.'], ['Error occurred.'],
['Subscribed to AJAX'], ['Subscribed to AJAX'],
['Error occured.'], ['Error occurred.'],
['Subscribed to AJAX'], ['Subscribed to AJAX'],
['Error occured.'], ['Error occurred.'],
['data: ', []], ['data: ', []],
]); ]);
}); });

View File

@ -17,7 +17,7 @@ export function docRegionDefault(console, ajax) {
const apiData = ajax('/api/data').pipe( const apiData = ajax('/api/data').pipe(
map((res: any) => { map((res: any) => {
if (!res.response) { if (!res.response) {
console.log('Error occured.'); console.log('Error occurred.');
throw new Error('Value expected!'); throw new Error('Value expected!');
} }
return res.response; return res.response;