Skip to content

Commit

Permalink
rename mapper/CdpServer -> mapper/CdpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Jul 16, 2021
1 parent cf17ea8 commit fb8a675
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bidiMapper/utils/cdpServer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { CdpServer } from './cdpServer';
import { CdpClient } from './cdpClient';
import { ServerBinding } from './iServer';
import { mock, instance, verify } from 'ts-mockito';

describe('CdpServer tests.', async () => {
it('given CdpServer, when `sendMessage` is called, then cdpBindings should be called with proper values', async () => {
describe('CdpClient tests.', async () => {
it('given CdpClient, when `sendMessage` is called, then cdpBindings should be called with proper values', async () => {
const someMessage = {
someAttribute: 'someValue',
};
Expand All @@ -13,9 +13,9 @@ describe('CdpServer tests.', async () => {
});

const mockBinding = mock(ServerBinding);
const cdpServer = new CdpServer(instance(mockBinding));
const cdpClient = new CdpClient(instance(mockBinding));

cdpServer.sendMessage(someMessage);
cdpClient.sendMessage(someMessage);

verify(mockBinding.sendMessage(expectedMessageStr)).called();
});
Expand Down

0 comments on commit fb8a675

Please sign in to comment.