Skip to content

Commit

Permalink
chore(rxjs-core): remove warning from logToReduxDevtoolsExtension w…
Browse files Browse the repository at this point in the history
…hen the extension is not found

Closes #32
  • Loading branch information
ersimont committed Jul 13, 2021
1 parent 396af3c commit 7e5087f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ describe('logToReduxDevtoolsExtension()', () => {

it('gracefully handles when there is no extension', () => {
delete (window as any)[extensionKey];
const warn = spyOn(console, 'warn');
const subject = new Subject();

logToReduxDevtoolsExtension(subject);
expectSingleCallAndReset(warn, 'No redux devtools extension found');

expect(() => {
subject.next({ a: 1 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function logToReduxDevtoolsExtension(
const extension: Extension | undefined = (window as any)
.__REDUX_DEVTOOLS_EXTENSION__;
if (!extension) {
console.warn('No redux devtools extension found');
return new Subscription();
}

Expand Down

0 comments on commit 7e5087f

Please sign in to comment.