Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 20, 2023
1 parent a96c8f3 commit dd24dee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Feature/Reverb/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@

$this->triggerEvent(
'test-channel',
'App\\Events\\TestEvent',
'TestEvent',
['foo' => 'bar']
);

foreach (await(all([$promiseOne, $promiseTwo, $promiseThree])) as $response) {
expect($response)->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"test-channel"}');
expect($response)->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"test-channel"}');
}
});

Expand All @@ -142,11 +142,11 @@

$this->triggerEvent(
'presence-test-channel',
'App\\Events\\TestEvent',
'TestEvent',
['foo' => 'bar']
);

expect(await($promise))->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}');
expect(await($promise))->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}');
});

it('can respond to a ping', function () {
Expand Down Expand Up @@ -299,11 +299,11 @@

$this->triggerEvent(
'presence-test-channel',
'App\\Events\\TestEvent',
'TestEvent',
['foo' => 'bar']
);

expect(await($promise))->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}');
expect(await($promise))->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}');
});

it('can publish and subscribe to a client whisper', function () {
Expand Down

0 comments on commit dd24dee

Please sign in to comment.