Skip to content

Commit

Permalink
fixes observable test
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed Jul 22, 2024
1 parent 7a9d170 commit 860e4a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/agent/src/observable.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { AgentError } from './errors';
import { Observable, ObservableLog } from './observable';

describe('Observable', () => {
Expand Down Expand Up @@ -48,7 +49,7 @@ describe('ObservableLog', () => {
observable.warn('warning');
expect(observer1).toHaveBeenCalledWith({ message: 'warning', level: 'warn' });
expect(observer2).toHaveBeenCalledWith({ message: 'warning', level: 'warn' });
const error = new Error('error');
const error = new AgentError('error');
observable.error('error', error);
expect(observer1).toHaveBeenCalledWith({ message: 'error', level: 'error', error });
expect(observer2).toHaveBeenCalledWith({ message: 'error', level: 'error', error });
Expand Down

0 comments on commit 860e4a4

Please sign in to comment.